mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-16 11:39:41 +00:00
Ensure GL_BLEND is disabled when drawing shadow maps
This commit is contained in:
parent
0e4e8eb0f3
commit
657da50d99
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ ShadowsBin::ShadowsBin()
|
|||
|
||||
mShaderAlphaTestStateSet = new osg::StateSet;
|
||||
mShaderAlphaTestStateSet->addUniform(new osg::Uniform("alphaTestShadows", true));
|
||||
mShaderAlphaTestStateSet->setMode(GL_BLEND, osg::StateAttribute::OFF | osg::StateAttribute::OVERRIDE);
|
||||
mShaderAlphaTestStateSet->setMode(GL_BLEND, osg::StateAttribute::OFF | osg::StateAttribute::PROTECTED | osg::StateAttribute::OVERRIDE);
|
||||
|
||||
for (size_t i = 0; i < sCastingPrograms.size(); ++i)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue