diff --git a/components/resource/scenemanager.cpp b/components/resource/scenemanager.cpp index d0d10a3cd..503b4ace8 100644 --- a/components/resource/scenemanager.cpp +++ b/components/resource/scenemanager.cpp @@ -210,7 +210,7 @@ namespace Resource : ResourceManager(vfs) , mShaderManager(new Shader::ShaderManager) , mForceShaders(false) - , mClampLighting(false) + , mClampLighting(true) , mForcePerPixelLighting(false) , mAutoUseNormalMaps(false) , mInstanceCache(new MultiObjectCache) diff --git a/components/shader/shadervisitor.cpp b/components/shader/shadervisitor.cpp index 0940c4c9e..bcce4a09c 100644 --- a/components/shader/shadervisitor.cpp +++ b/components/shader/shadervisitor.cpp @@ -37,7 +37,7 @@ namespace Shader ShaderVisitor::ShaderVisitor(ShaderManager& shaderManager, Resource::ImageManager& imageManager, const std::string &defaultVsTemplate, const std::string &defaultFsTemplate) : osg::NodeVisitor(TRAVERSE_ALL_CHILDREN) , mForceShaders(false) - , mClampLighting(false) + , mClampLighting(true) , mForcePerPixelLighting(false) , mAllowedToModifyStateSets(true) , mAutoUseNormalMaps(false)