Make indoor shadows disableable.

pull/541/head
AnyOldName3 6 years ago
parent 1e0f982741
commit 3b3721897d

@ -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);
}
}

@ -121,7 +121,16 @@ object shadows
Allow static objects to cast shadows.
Potentially decreases performance.
enable indoor shadows
---------------------
:Type: boolean
:Range: True/False
:Default: False
Allow shadows indoors.
Due to limitations with Morrowind's data, only actors can cast shadows indoors without the ceiling casting a shadow everywhere.
Some might feel this is distracting as shadows can be cast through other objects, so indoor shadows can be disabled completely.
Expert settings
***************

@ -549,3 +549,5 @@ player shadows = false
terrain shadows = false
# Allow world objects to cast shadows. Potentially decreases performance.
object shadows = false
# Allow shadows indoors. Due to limitations with Morrowind's data, only actors can cast shadows indoors, which some might feel is distracting.
enable indoor shadows = true
Loading…
Cancel
Save