From ec3b2ba2d396fc1890fac310a03aaeab89a9205c Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 1 Sep 2011 18:49:33 +0000 Subject: [PATCH] Added test line for COMPUTE_NEAR_USING_PRIMITIVES --- src/osgShadow/ViewDependentShadowMap.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/osgShadow/ViewDependentShadowMap.cpp b/src/osgShadow/ViewDependentShadowMap.cpp index 516987be6..02836e977 100644 --- a/src/osgShadow/ViewDependentShadowMap.cpp +++ b/src/osgShadow/ViewDependentShadowMap.cpp @@ -626,6 +626,7 @@ void ViewDependentShadowMap::cull(osgUtil::CullVisitor& cv) // set the compute near/far mode to the highest quality setting to ensure we push the near plan out as far as possible cv.setComputeNearFarMode(osg::CullSettings::COMPUTE_NEAR_FAR_USING_PRIMITIVES); + //cv.setComputeNearFarMode(osg::CullSettings::COMPUTE_NEAR_USING_PRIMITIVES); // 1. Traverse main scene graph cv.pushStateSet( _shadowRecievingPlaceholderStateSet.get() ); @@ -1662,9 +1663,6 @@ bool ViewDependentShadowMap::adjustPerspectiveShadowMapCameraSettings(osgUtil::R #endif if (rli.max_z_ratio>max_z_ratio) max_z_ratio = rli.max_z_ratio; if (rli.min_z_ratiomin_y) min_y = rli.min_y; - //if (rli.max_y