mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 19:19:56 +00:00
Turning on shadows will now force shaders on
This commit is contained in:
parent
e46bf28e5f
commit
6d29375d5e
3 changed files with 4 additions and 5 deletions
|
@ -186,7 +186,7 @@ namespace MWRender
|
|||
resourceSystem->getSceneManager()->setParticleSystemMask(MWRender::Mask_ParticleSystem);
|
||||
|
||||
resourceSystem->getSceneManager()->setShaderPath(resourcePath + "/shaders");
|
||||
resourceSystem->getSceneManager()->setForceShaders(Settings::Manager::getBool("force shaders", "Shaders"));
|
||||
resourceSystem->getSceneManager()->setForceShaders(Settings::Manager::getBool("force shaders", "Shaders") || Settings::Manager::getBool("enable shadows", "Shadows")); // Shadows have problems with fixed-function mode
|
||||
resourceSystem->getSceneManager()->setClampLighting(Settings::Manager::getBool("clamp lighting", "Shaders"));
|
||||
resourceSystem->getSceneManager()->setForcePerPixelLighting(Settings::Manager::getBool("force per pixel lighting", "Shaders"));
|
||||
resourceSystem->getSceneManager()->setAutoUseNormalMaps(Settings::Manager::getBool("auto use object normal maps", "Shaders"));
|
||||
|
|
|
@ -13,9 +13,8 @@ enable shadows
|
|||
|
||||
Enable or disable the rendering of shadows.
|
||||
Unlike in the original Morrowind engine, 'Shadow Mapping' is used, which can have a performance impact, but has more realistic results.
|
||||
When used in fixed-function mode, shadowed regions will appear completely black.
|
||||
To prevent this, enable :ref:`force-shaders-label`.
|
||||
A keen developer may be able to implement something better using the advice of `this post <https://github.com/OpenMW/openmw/pull/1547#issuecomment-369657381>`_, but it may be more difficult than it seems.
|
||||
Bear in mind that this will force OpenMW to use shaders as if :ref:`force-shaders-label` was enabled.
|
||||
A keen developer may be able to implement compatibility with fixed-function mode using the advice of `this post <https://github.com/OpenMW/openmw/pull/1547#issuecomment-369657381>`_, but it may be more difficult than it seems.
|
||||
|
||||
|
||||
number of shadow maps
|
||||
|
|
|
@ -474,7 +474,7 @@ companion w = 0.38
|
|||
companion h = 0.63
|
||||
|
||||
[Shadows]
|
||||
# Enable or disable shadows. Bear in mind that when used without "[Shaders]/force shaders" set to true (i.e. objects and terrain are rendered in fixed-function mode) shadowed areas will be completely black. As such, it is recommended to use this feature in conjunction with shaders.
|
||||
# Enable or disable shadows. Bear in mind that this will force OpenMW to use shaders as if "[Shaders]/force shaders" was set to true.
|
||||
enable shadows = false
|
||||
# How many shadow maps to use - more of these means each shadow map texel covers less area, producing better looking shadows, but may decrease performance.
|
||||
number of shadow maps = 1
|
||||
|
|
Loading…
Reference in a new issue