- Timestamp:
- 10/23/06 23:26:11 (18 years ago)
- Location:
- GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderingRuns
- Files:
-
- 2 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 -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderingRuns/OgreSceneCameraDepthRenderingRun.cpp
r1425 r1670 58 58 rt->update(); 59 59 60 //rt->writeContentsToFile("cameraDepth. dds");60 //rt->writeContentsToFile("cameraDepth.bmp"); 61 61 62 62 restoreMaterials();
Note: See TracChangeset
for help on using the changeset viewer.