mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-31 02:45: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:
commit
2ea71fbc5c
1 changed files with 3 additions and 0 deletions
|
@ -612,6 +612,9 @@ namespace MWRender
|
||||||
mRootNode->getOrCreateStateSet()->setAttributeAndModes(clipcontrol, osg::StateAttribute::ON);
|
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());
|
SceneUtil::setCameraClearDepth(mViewer->getCamera());
|
||||||
|
|
||||||
updateProjectionMatrix();
|
updateProjectionMatrix();
|
||||||
|
|
Loading…
Reference in a new issue