Prevent debug HUD geometry from being culled erroneously.

pull/541/head
AnyOldName3 7 years ago
parent 1c6e23f660
commit cf54b4a130

@ -63,6 +63,7 @@ namespace MWRender
debugProgram->addShader(fragmentShader);
debugGeometry = osg::createTexturedQuadGeometry(osg::Vec3(-1, -1, 0), osg::Vec3(2, 0, 0), osg::Vec3(0, 2, 0));
debugGeometry->setCullingActive(false);
debugCamera->addChild(debugGeometry);
osg::ref_ptr<osg::StateSet> stateSet = debugGeometry->getOrCreateStateSet();
stateSet->setAttributeAndModes(debugProgram, osg::StateAttribute::ON);

Loading…
Cancel
Save