Ignore:
Timestamp:
10/23/06 23:26:11 (18 years ago)
Author:
szirmay
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderingRuns/OgreDepthShadowMapRenderingRun.cpp

    r1639 r1670  
    2020         
    2121        this->materialName = materialName; 
    22  
     22        lightFarPlane = 0; 
    2323        createDepthMap();        
    2424} 
     
    320320                        if(!usefocusing) 
    321321                        { 
    322                                 depthMapCamera->setFarClipDistance(light->getAttenuationRange() ); 
     322                                lightFarPlane = light->getAttenuationRange(); 
     323                                depthMapCamera->setFarClipDistance(lightFarPlane); 
     324                                 
    323325                        } 
    324326                        else 
     
    336338                                        float farP= -1.5 * min.z; 
    337339                                        if(farP < 0.2) farP = 0.2; 
    338                                         depthMapCamera->setFarClipDistance(farP); 
    339  
     340                                                depthMapCamera->setFarClipDistance(farP); 
     341                                        lightFarPlane = farP; 
     342                                 
    340343                                        Vector3 scale = (max - min); 
    341344                                        scale *= 1.5; // just for safety 
Note: See TracChangeset for help on using the changeset viewer.