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:
commit
2ea71fbc5c
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue