mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-25 03:40: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
@ -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…
x
Reference in New Issue
Block a user