source: trunk/BUTE/Ogre/FinalRenderingRuns/DEMFinalGatheringPass.cpp @ 125

Revision 125, 1.1 KB checked in by barsi, 19 years ago (diff)

Added a folder remotely

Line 
1#include "Ogre.h"
2#include "OgreEffectWrapper.h"
3#include "managedogrerendertexturepass.h"
4#include "DEMFinalGatheringPass.h"
5
6DEMFinalGatheringPass::DEMFinalGatheringPass(Root* mRoot)
7:ManagedOgreRenderTexturePass(mRoot,ManagedOgreRenderTexturePass::noRenderTargetName,1,1)
8{
9        setMaterialName("EnvMap/EnvMapMaterial");
10}
11
12DEMFinalGatheringPass::~DEMFinalGatheringPass(void)
13{
14
15}
16
17void DEMFinalGatheringPass::onRenderStart(NameValuePairList* namedParams){
18        effectWrapper->SetTechniqueToUse(0);
19        effectWrapper->BeginPass();
20        effectWrapper->SetVector3("g_EyePos",renderTargets.at(0)->getViewport(0)->getCamera()->getPosition());
21        effectWrapper->SetVector3("g_EnvMapPos",this->envMapPosition);
22        effectWrapper->SetVector3("g_DiffuseColor",this->diffuseColor);
23}
24
25void DEMFinalGatheringPass::onRenderEnd(NameValuePairList* namedParams){
26        effectWrapper->EndPass();
27}
28
29void DEMFinalGatheringPass::setEnvMapPosition(Vector3 envMapPosition){
30        this->envMapPosition=envMapPosition;
31}
32
33void DEMFinalGatheringPass::setDiffuseColor(Vector3 diffuseColor){
34        this->diffuseColor=diffuseColor;
35}
36
37void DEMFinalGatheringPass::update(){
38}
Note: See TracBrowser for help on using the repository browser.