Make indoor shadows disableable.

This commit is contained in:
AnyOldName3 2018-08-08 23:56:11 +01:00
parent 1e0f982741
commit 3b3721897d
3 changed files with 17 additions and 1 deletions

View file

@ -123,10 +123,15 @@ namespace SceneUtil
}
void ShadowManager::enableIndoorMode()
{
mShadowSettings->setCastsShadowTraversalMask(mIndoorShadowCastingMask);
if (Settings::Manager::getBool("enable indoor shadows", "Shadows"))
mShadowSettings->setCastsShadowTraversalMask(mIndoorShadowCastingMask);
else
mShadowTechnique->disableShadows();
}
void ShadowManager::enableOutdoorMode()
{
if (mEnableShadows)
mShadowTechnique->enableShadows();
mShadowSettings->setCastsShadowTraversalMask(mOutdoorShadowCastingMask);
}
}