Changed the occluder traversal so that checks the children of the SceneView's Cameara

rather than starting at the camera itself.
This commit is contained in:
Robert Osfield 2005-11-08 09:36:42 +00:00
parent 329a3d47ff
commit d3b1ee6b57

View File

@ -607,7 +607,10 @@ void SceneView::cullStage(const osg::Matrixd& projection,const osg::Matrixd& mod
_collectOccludersVisistor->pushModelViewMatrix(mv.get());
// traverse the scene graph to search for occluder in there new positions.
_camera->accept(*_collectOccludersVisistor);
for(unsigned int i=0; i< _camera->getNumChildren(); ++i)
{
_camera->getChild(i)->accept(*_collectOccludersVisistor);
}
_collectOccludersVisistor->popModelViewMatrix();
_collectOccludersVisistor->popProjectionMatrix();