Changeset 2437 for GTP/trunk/Lib
- Timestamp:
- 06/08/07 13:51:30 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderTechniques/OgreDepthShadowReceiverRenderTechnique.cpp
r2406 r2437 76 76 77 77 newpass->setDepthBias(1); 78 newpass->setVertexProgram(shadowVertexProgram); 79 newpass->setFragmentProgram(shadowFragmentProgram); 80 81 GpuProgramParametersSharedPtr vpParams = newpass->getVertexProgramParameters(); 82 vpParams->setNamedAutoConstant(WorldViewProjParamName, 83 GpuProgramParameters::ACT_WORLDVIEWPROJ_MATRIX); 84 vpParams->setNamedAutoConstant(WorldParamName, 85 GpuProgramParameters::ACT_WORLD_MATRIX); 78 86 techn->movePass(lastpass, index); 79 87 } … … 138 146 passToSet->getTextureUnitState(textureUnit)->setTextureName( 139 147 depthRun->getDepthMapTextureName()); 140 141 if(createNewPasses) 142 { 143 //TODO: ask programs from illummanager 144 passes.at(i)->setVertexProgram(shadowVertexProgram); 145 passes.at(i)->setFragmentProgram(shadowFragmentProgram); 146 } 147 148 148 149 GpuProgramParametersSharedPtr fpParams = passToSet->getFragmentProgramParameters(); 149 150 GpuProgramParametersSharedPtr vpParams = passToSet->getVertexProgramParameters(); … … 157 158 LightViewParamName += StringConverter::toString(i+1); 158 159 LightFarPlaneParamName += StringConverter::toString(i+1); 159 } 160 else 161 { 162 vpParams->setNamedAutoConstant(WorldViewProjParamName, 163 GpuProgramParameters::ACT_WORLDVIEWPROJ_MATRIX); 164 vpParams->setNamedAutoConstant(WorldParamName, 165 GpuProgramParameters::ACT_WORLD_MATRIX); 166 } 160 } 167 161 168 162 if(setLightViewProjMatrix)
Note: See TracChangeset
for help on using the changeset viewer.