mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-03 09:39:40 +00:00
Make sure it is either one or the other with the default to bounding volumes.
This commit is contained in:
parent
980525cba4
commit
bb5fe13e13
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ namespace SceneUtil
|
|||
std::string computeNearFarMode = Settings::Manager::getString("near far computation", "Shadows");
|
||||
if (Misc::StringUtils::lowerCase(computeNearFarMode) == "primitives")
|
||||
mShadowSettings->setComputeNearFarModeOverride(osg::CullSettings::COMPUTE_NEAR_FAR_USING_PRIMITIVES);
|
||||
else if (Misc::StringUtils::lowerCase(computeNearFarMode) == "bounding volumes")
|
||||
else
|
||||
mShadowSettings->setComputeNearFarModeOverride(osg::CullSettings::COMPUTE_NEAR_FAR_USING_BOUNDING_VOLUMES);
|
||||
|
||||
int mapres = Settings::Manager::getInt("shadow map resolution", "Shadows");
|
||||
|
|
Loading…
Reference in a new issue