1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 21:23:52 +00:00

Prevent debug HUD geometry from being culled erroneously.

This commit is contained in:
AnyOldName3 2017-10-26 20:38:36 +01:00
parent 1c6e23f660
commit cf54b4a130

View file

@ -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);