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