Changeset 1670 for GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderingRuns/OgreDepthShadowMapRenderingRun.cpp
- Timestamp:
- 10/23/06 23:26:11 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderingRuns/OgreDepthShadowMapRenderingRun.cpp
r1639 r1670 20 20 21 21 this->materialName = materialName; 22 22 lightFarPlane = 0; 23 23 createDepthMap(); 24 24 } … … 320 320 if(!usefocusing) 321 321 { 322 depthMapCamera->setFarClipDistance(light->getAttenuationRange() ); 322 lightFarPlane = light->getAttenuationRange(); 323 depthMapCamera->setFarClipDistance(lightFarPlane); 324 323 325 } 324 326 else … … 336 338 float farP= -1.5 * min.z; 337 339 if(farP < 0.2) farP = 0.2; 338 depthMapCamera->setFarClipDistance(farP); 339 340 depthMapCamera->setFarClipDistance(farP); 341 lightFarPlane = farP; 342 340 343 Vector3 scale = (max - min); 341 344 scale *= 1.5; // just for safety
Note: See TracChangeset
for help on using the changeset viewer.