Further updates to the occlusion culling code, also adding missing OccludeNode

file the .osg plugin.
This commit is contained in:
Robert Osfield
2002-06-14 08:45:28 +00:00
parent 61df1ed6b7
commit d7760fbbd4
3 changed files with 48 additions and 5 deletions

View File

@@ -261,11 +261,11 @@ void SceneView::cull()
cullStage(projectionRight.get(),modelviewRight.get(),_cullVisitorRight.get(),_rendergraphRight.get(),_renderStageRight.get());
// if (_camera.valid())
// {
// // clamp the camera to the near/far computed in cull traversal.
// _camera->setNearFar(_cullVisitorRight->getCalculatedNearPlane(),_cullVisitorRight->getCalculatedFarPlane());
// }
if (_camera.valid())
{
// clamp the camera to the near/far computed in cull traversal.
_camera->setNearFar(_cullVisitorRight->getCalculatedNearPlane(),_cullVisitorRight->getCalculatedFarPlane());
}
}
else