From 4ca6e91292b4cdfda6df4bb66c0b9469a419c910 Mon Sep 17 00:00:00 2001 From: scrawl Date: Sat, 20 Feb 2016 20:36:29 +0100 Subject: [PATCH] Fix in-code default settings so that we don't attempt to use shaders in OpenCS --- components/resource/scenemanager.cpp | 2 +- components/shader/shadervisitor.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)