Show
Ignore:
Timestamp:
11/21/14 17:27:29 (less than one hour ago)
Author:
robert
Message:

From Sebastian Messerschmidt, "Added setColor function to modify an image based on texture coordinates, parallel to the getColor functionality."

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgShadow/ViewDependentShadowMap.cpp

    r13109 r13110  
    800800    } 
    801801 
    802     //minZNear = osg::maximum(10.0,minZNear); 
    803     //maxZFar = osg::minimum(60.0,maxZFar); 
    804  
     802    // clamp the minZNear and maxZFar to those provided by ShadowSettings 
     803    maxZFar = osg::minimum(settings->getMaximumShadowMapDistance(),maxZFar); 
     804    if (minZNear>maxZFar) minZNear = maxZFar*settings->getMinimumShadowMapNearFarRatio(); 
     805 
     806    //OSG_NOTICE<<"maxZFar "<<maxZFar<<std::endl; 
     807     
    805808    Frustum frustum(&cv, minZNear, maxZFar); 
    806809