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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user