Changeset 1055 for GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderTechniques/OgreDepthShadowRecieverRenderTechnique.cpp
- Timestamp:
- 06/26/06 09:52:08 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderTechniques/OgreDepthShadowRecieverRenderTechnique.cpp
r949 r1055 52 52 TextureUnitState* st = newpass->createTextureUnitState(); 53 53 st->setTextureFiltering(TFO_BILINEAR); 54 st = newpass->createTextureUnitState(); 55 st->setTextureFiltering(TFO_BILINEAR); 54 56 55 57 newpass->setSceneBlending(SBT_MODULATE); 56 newpass->setDepthBias( 5);58 newpass->setDepthBias(7); 57 59 techn->movePass(lastpass, index); 58 60 } … … 93 95 94 96 passes.at(i)->getTextureUnitState(0)->setTextureName( 95 depthRun->getDepthMapTextureName()); 97 depthRun->getDepthMapTextureName(0)); 98 passes.at(i)->getTextureUnitState(1)->setTextureName( 99 depthRun->getDepthMapTextureName(1)); 96 100 97 101 //TODO: set matrices 98 102 GpuProgramParametersSharedPtr fpParams = passes.at(i)->getFragmentProgramParameters(); 99 fpParams->setNamedConstant("lightView", depthRun->getLightViewMatrix()); 100 fpParams->setNamedConstant("lightViewProj", depthRun->getLightViewProjMatrix()); 103 fpParams->setNamedConstant("lightView", depthRun->getLightViewMatrix(0)); 104 fpParams->setNamedConstant("lightViewProj", depthRun->getLightViewProjMatrix(0)); 105 fpParams->setNamedConstant("lightView2", depthRun->getLightViewMatrix(1)); 106 fpParams->setNamedConstant("lightViewProj2", depthRun->getLightViewProjMatrix(1)); 101 107 102 108 passes.at(i)->setActive(true);
Note: See TracChangeset
for help on using the changeset viewer.