Further updates to the occlusion culling code, also adding missing OccludeNode
file the .osg plugin.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user