Added setting colormask to SceneView on every frame to allow toggling

between stereo on and off in Anaglyphic mode.
This commit is contained in:
Don BURNS
2002-09-04 01:15:07 +00:00
parent 1ad924d0ca
commit d5f87e919d

View File

@@ -588,6 +588,9 @@ void SceneView::draw()
else
{
_globalState->setAttribute(_viewport.get());
osg::ref_ptr<osg::ColorMask> cmask = osgNew osg::ColorMask;
cmask->setMask(true,true,true,true);
_globalState->setAttribute(cmask.get());
// bog standard draw.
drawStage(_renderStage.get());