From Farshid Lashkari, "I made a small modification to the CullVisitor class so that it uses

the inheritance mask of CameraNodes with respect to the compute
near/far mode."
This commit is contained in:
Robert Osfield
2006-09-21 10:38:06 +00:00
parent 35d134f712
commit 4b7fb8f17d

View File

@@ -1073,8 +1073,10 @@ void CullVisitor::apply(osg::CameraNode& camera)
// set the compute near far mode.
ComputeNearFarMode saved_compute_near_far_mode = getComputeNearFarMode();
setComputeNearFarMode( camera.getComputeNearFarMode());
if (camera.getInheritanceMask() & COMPUTE_NEAR_FAR_MODE)
{
setComputeNearFarMode( camera.getComputeNearFarMode());
}
RefMatrix& originalModelView = getModelViewMatrix();