mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-29 08:00:56 -04: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