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:
parent
1c6e23f660
commit
cf54b4a130
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue