mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-16 16:20:53 +00:00
Prevent debug HUD geometry from being culled erroneously.
This commit is contained in:
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…
x
Reference in New Issue
Block a user