From 57e10e26b2276898f0829060018cc4300ced2356 Mon Sep 17 00:00:00 2001 From: AnyOldName3 Date: Thu, 31 Jan 2019 14:58:57 +0000 Subject: [PATCH] Make variable name less confusing --- components/sceneutil/shadow.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/components/sceneutil/shadow.cpp b/components/sceneutil/shadow.cpp index ebb4868ad3..97d96f3f4e 100644 --- a/components/sceneutil/shadow.cpp +++ b/components/sceneutil/shadow.cpp @@ -134,21 +134,21 @@ namespace SceneUtil Shader::ShaderManager::DefineMap ShadowManager::getShadowsDisabledDefines() { - Shader::ShaderManager::DefineMap definesWithShadows; - definesWithShadows.insert(std::make_pair(std::string("shadows_enabled"), std::string("0"))); - definesWithShadows["shadow_texture_unit_list"] = ""; + Shader::ShaderManager::DefineMap definesWithoutShadows; + definesWithoutShadows.insert(std::make_pair(std::string("shadows_enabled"), std::string("0"))); + definesWithoutShadows["shadow_texture_unit_list"] = ""; - definesWithShadows["shadowMapsOverlap"] = "0"; + definesWithoutShadows["shadowMapsOverlap"] = "0"; - definesWithShadows["useShadowDebugOverlay"] = "0"; + definesWithoutShadows["useShadowDebugOverlay"] = "0"; - definesWithShadows["perspectiveShadowMaps"] = "0"; + definesWithoutShadows["perspectiveShadowMaps"] = "0"; - definesWithShadows["disableNormalOffsetShadows"] = "0"; + definesWithoutShadows["disableNormalOffsetShadows"] = "0"; - definesWithShadows["shadowNormalOffset"] = "0.0"; + definesWithoutShadows["shadowNormalOffset"] = "0.0"; - return definesWithShadows; + return definesWithoutShadows; } void ShadowManager::enableIndoorMode() {