From svn/trunk merged "Changed default cull mask to match the left cull mask so that mono rendering of presentations with left/right stereo images/movies works fine."
This commit is contained in:
@@ -491,10 +491,20 @@ int main( int argc, char **argv )
|
||||
}
|
||||
|
||||
// set up stereo masks
|
||||
viewer.getCamera()->setCullMask(0xffffffff);
|
||||
|
||||
viewer.getCamera()->setCullMaskLeft(0x00000001);
|
||||
viewer.getCamera()->setCullMaskRight(0x00000002);
|
||||
|
||||
bool assignLeftCullMaskForMono = true;
|
||||
if (assignLeftCullMaskForMono)
|
||||
{
|
||||
viewer.getCamera()->setCullMask(viewer.getCamera()->getCullMaskLeft());
|
||||
}
|
||||
else
|
||||
{
|
||||
viewer.getCamera()->setCullMask(0xffffffff);
|
||||
}
|
||||
|
||||
// set up the camera manipulators.
|
||||
{
|
||||
osg::ref_ptr<osgGA::KeySwitchMatrixManipulator> keyswitchManipulator = new osgGA::KeySwitchMatrixManipulator;
|
||||
|
||||
Reference in New Issue
Block a user