Changeset 2363 for GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule
- Timestamp:
- 05/10/07 13:32:31 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderingRuns/OgreDepthShadowMapRenderingRun.cpp
r2333 r2363 124 124 void OgreDepthShadowMapRenderingRun::updateDepthMap() 125 125 { 126 setMaterialForVisibles(materialName, depthMapCamera, false); 126 String triggerName; 127 switch(light->getType()) 128 { 129 case Light::LT_DIRECTIONAL: 130 triggerName = "ILLUM_TRIGGER_SM_DIRECTIONAL"; 131 break; 132 case Light::LT_SPOTLIGHT: 133 triggerName = "ILLUM_TRIGGER_SM_SPOT"; 134 break; 135 case Light::LT_POINT: 136 triggerName = "ILLUM_TRIGGER_SM_POINT"; 137 break; 138 } 139 setMaterialForVisibles(materialName, depthMapCamera, true, false, triggerName); 127 140 RenderTarget* rt = depthMapTexture->getBuffer().getPointer()->getRenderTarget(); 128 141 Viewport* vp = rt->getViewport(0);
Note: See TracChangeset
for help on using the changeset viewer.