Show
Ignore:
Timestamp:
07/31/14 20:29:31 (3 hours ago)
Author:
robert
Message:

Added NodeVisitor::INTERSECTION_VISITOR VisitorType?

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