mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 06:53:53 +00:00
Init shadow defines in the editor too for a good measure
This commit is contained in:
parent
158f4e23cb
commit
9f9b7cb0ae
1 changed files with 7 additions and 0 deletions
|
@ -79,6 +79,13 @@ CSMWorld::Data::Data (ToUTF8::FromType encoding, bool fsStrict, const Files::Pat
|
|||
Shader::ShaderManager::DefineMap defines = mResourceSystem->getSceneManager()->getShaderManager().getGlobalDefines();
|
||||
defines["forcePPL"] = "0";
|
||||
defines["clamp"] = "1";
|
||||
defines["shadows_enabled"] = "0";
|
||||
defines["shadow_texture_unit_list"] = "";
|
||||
defines["shadowMapsOverlap"] = "0";
|
||||
defines["useShadowDebugOverlay"] = "0";
|
||||
defines["perspectiveShadowMaps"] = "0";
|
||||
defines["disableNormalOffsetShadows"] = "0";
|
||||
defines["shadowNormalOffset"] = "0.0";
|
||||
mResourceSystem->getSceneManager()->getShaderManager().setGlobalDefines(defines);
|
||||
|
||||
mResourceSystem->getSceneManager()->setShaderPath((resDir / "shaders").string());
|
||||
|
|
Loading…
Reference in a new issue