1
0
Fork 0
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:
Capostrophic 2019-04-25 20:38:58 +03:00
parent 158f4e23cb
commit 9f9b7cb0ae

View file

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