mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-09 12:07:51 +03:00
Attach shaders to geometry that lacks a stateset if necessary
This commit is contained in:
parent
a9fdb51041
commit
6aef366fd3
3 changed files with 34 additions and 58 deletions
|
@ -612,9 +612,6 @@ 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…
Add table
Add a link
Reference in a new issue