Revision 125,
1.1 KB
checked in by barsi, 19 years ago
(diff) |
Added a folder remotely
|
Rev | Line | |
---|
[125] | 1 | #include "Ogre.h"
|
---|
| 2 | #include "OgreEffectWrapper.h"
|
---|
| 3 | #include "managedogrerendertexturepass.h"
|
---|
| 4 | #include "FEMFinalGatheringPass.h"
|
---|
| 5 |
|
---|
| 6 | FEMFinalGatheringPass::FEMFinalGatheringPass(Root* mRoot)
|
---|
| 7 | :ManagedOgreRenderTexturePass(mRoot,ManagedOgreRenderTexturePass::noRenderTargetName,1,1)
|
---|
| 8 | {
|
---|
| 9 | setMaterialName("EnvMap/EnvMapMaterial");
|
---|
| 10 | }
|
---|
| 11 |
|
---|
| 12 | FEMFinalGatheringPass::~FEMFinalGatheringPass(void)
|
---|
| 13 | {
|
---|
| 14 |
|
---|
| 15 | }
|
---|
| 16 |
|
---|
| 17 | void 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 |
|
---|
| 25 | void FEMFinalGatheringPass::onRenderEnd(NameValuePairList* namedParams){
|
---|
| 26 | effectWrapper->EndPass();
|
---|
| 27 | }
|
---|
| 28 |
|
---|
| 29 | void FEMFinalGatheringPass::setEnvMapPostition(Vector3 envMapPosition){
|
---|
| 30 | this->envMapPosition=envMapPosition;
|
---|
| 31 | }
|
---|
| 32 |
|
---|
| 33 | void FEMFinalGatheringPass::setFresnelFactor(float fresnelFactor){
|
---|
| 34 | this->fresnelFactor=fresnelFactor;
|
---|
| 35 | }
|
---|
| 36 |
|
---|
| 37 | void FEMFinalGatheringPass::update(){
|
---|
| 38 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.