source: trunk/BUTE/src/FinalRenderingRuns/FEMFinalGatheringPass.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 "FEMFinalGatheringPass.h"
5
6FEMFinalGatheringPass::FEMFinalGatheringPass(Root* mRoot)
7:ManagedOgreRenderTexturePass(mRoot,ManagedOgreRenderTexturePass::noRenderTargetName,1,1)
8{
9        setMaterialName("EnvMap/EnvMapMaterial");
10}
11
12FEMFinalGatheringPass::~FEMFinalGatheringPass(void)
13{
14
15}
16
17void FEMFinalGatheringPass::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->SetFloat("g_FresnelFactor",this->fresnelFactor);
23}
24
25void FEMFinalGatheringPass::onRenderEnd(NameValuePairList* namedParams){
26        effectWrapper->EndPass();
27}
28
29void FEMFinalGatheringPass::setEnvMapPostition(Vector3 envMapPosition){
30        this->envMapPosition=envMapPosition;
31}
32
33void FEMFinalGatheringPass::setFresnelFactor(float fresnelFactor){
34        this->fresnelFactor=fresnelFactor;
35}
36
37void FEMFinalGatheringPass::update(){
38}
Note: See TracBrowser for help on using the repository browser.