1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-31 03:15:34 +00:00

Merge branch 'default_shaders' into 'master'

Default shader at root (#7251)

Closes #7251

See merge request OpenMW/openmw!2773
This commit is contained in:
psi29a 2023-02-26 20:58:29 +00:00
commit 2ea71fbc5c

View file

@ -612,6 +612,9 @@ namespace MWRender
mRootNode->getOrCreateStateSet()->setAttributeAndModes(clipcontrol, osg::StateAttribute::ON);
}
// Assign a default shader on root to handle empty statesets
mResourceSystem->getSceneManager()->recreateShaders(mRootNode, "objects");
SceneUtil::setCameraClearDepth(mViewer->getCamera());
updateProjectionMatrix();