mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-30 20:45:35 +00:00
Capitulate
This commit is contained in:
parent
8c92f6ee87
commit
3335ccbc32
1 changed files with 2 additions and 1 deletions
|
@ -104,7 +104,8 @@ namespace SceneUtil
|
||||||
stateset.setTextureAttribute(i, fakeShadowMapTexture,
|
stateset.setTextureAttribute(i, fakeShadowMapTexture,
|
||||||
osg::StateAttribute::ON | osg::StateAttribute::OVERRIDE | osg::StateAttribute::PROTECTED);
|
osg::StateAttribute::ON | osg::StateAttribute::OVERRIDE | osg::StateAttribute::PROTECTED);
|
||||||
stateset.addUniform(new osg::Uniform(
|
stateset.addUniform(new osg::Uniform(
|
||||||
("shadowTexture" + std::to_string(i - mShadowSettings->getBaseShadowTextureUnit())).c_str(), static_cast<int>(i)));
|
("shadowTexture" + std::to_string(i - mShadowSettings->getBaseShadowTextureUnit())).c_str(),
|
||||||
|
static_cast<int>(i)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue