Change dhte CullSettings to be correct to new changes in osgProducer
This commit is contained in:
parent
f7166c4541
commit
4664920b65
@ -501,15 +501,16 @@ int main( int argc, char **argv )
|
|||||||
viewer.setSceneData(rootNode.get());
|
viewer.setSceneData(rootNode.get());
|
||||||
|
|
||||||
|
|
||||||
|
viewer.getCullSettings().setCullMask(0xffffffff);
|
||||||
|
viewer.getCullSettings().setCullMaskLeft(0x00000001);
|
||||||
|
viewer.getCullSettings().setCullMaskRight(0x00000002);
|
||||||
|
|
||||||
// set all the sceneview's up so that their left and right add cull masks are set up.
|
// set all the sceneview's up so that their left and right add cull masks are set up.
|
||||||
for(osgProducer::OsgCameraGroup::SceneHandlerList::iterator itr=viewer.getSceneHandlerList().begin();
|
for(osgProducer::OsgCameraGroup::SceneHandlerList::iterator itr=viewer.getSceneHandlerList().begin();
|
||||||
itr!=viewer.getSceneHandlerList().end();
|
itr!=viewer.getSceneHandlerList().end();
|
||||||
++itr)
|
++itr)
|
||||||
{
|
{
|
||||||
osgUtil::SceneView* sceneview = (*itr)->getSceneView();
|
osgUtil::SceneView* sceneview = (*itr)->getSceneView();
|
||||||
sceneview->setCullMask(0xffffffff);
|
|
||||||
sceneview->setCullMaskLeft(0x00000001);
|
|
||||||
sceneview->setCullMaskRight(0x00000002);
|
|
||||||
sceneview->setFusionDistance(osgUtil::SceneView::USE_FUSION_DISTANCE_VALUE,radius);
|
sceneview->setFusionDistance(osgUtil::SceneView::USE_FUSION_DISTANCE_VALUE,radius);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user