Further work on occlusion culling.

This commit is contained in:
Robert Osfield
2002-06-13 23:46:02 +00:00
parent 8c5722577e
commit 61df1ed6b7
9 changed files with 203 additions and 70 deletions

View File

@@ -289,11 +289,11 @@ void SceneView::cull()
_cullVisitor->setTraversalMask(_cullMask);
cullStage(projection.get(),modelview.get(),_cullVisitor.get(),_rendergraph.get(),_renderStage.get());
// if (_camera.valid())
// {
// // clamp the camera to the near/far computed in cull traversal.
// _camera->setNearFar(_cullVisitor->getCalculatedNearPlane(),_cullVisitor->getCalculatedFarPlane());
// }
if (_camera.valid())
{
// clamp the camera to the near/far computed in cull traversal.
_camera->setNearFar(_cullVisitor->getCalculatedNearPlane(),_cullVisitor->getCalculatedFarPlane());
}
}