1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-24 09:39:51 +00:00

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

View File

@ -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
***************

View File

@ -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