Make sure it is either one or the other with the default to bounding volumes.

pull/2915/head
psi29a 5 years ago
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…
Cancel
Save