Skip to content

Commit b7a48e1

Browse files
committed
Merge branch 'disable-shadows-even-harder' into 'master'
Disable shadows even harder Closes #8514 See merge request OpenMW/openmw!4686
2 parents 0456403 + 47fff7f commit b7a48e1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

components/sceneutil/shadow.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ namespace SceneUtil
104104
("shadowTexture" + std::to_string(i - mShadowSettings->getBaseShadowTextureUnit())).c_str(),
105105
static_cast<int>(i)));
106106
}
107+
stateset.addUniform(new osg::Uniform("maximumShadowMapDistance", 0.00001f));
108+
stateset.addUniform(new osg::Uniform("shadowFadeStart", 0.0f));
107109
}
108110

109111
ShadowManager::ShadowManager(osg::ref_ptr<osg::Group> sceneRoot, osg::ref_ptr<osg::Group> rootNode,

0 commit comments

Comments
 (0)