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:
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…
x
Reference in New Issue
Block a user