diff options
| author | dolphin <dolphin@lindenlab.com> | 2013-06-19 09:58:43 -0700 |
|---|---|---|
| committer | dolphin <dolphin@lindenlab.com> | 2013-06-19 09:58:43 -0700 |
| commit | ea40b3a37b0f9b7e09e999a2c6529905e251ecad (patch) | |
| tree | 9cfb5603040efc7738bca633b902c190db28b0bf /indra/newview/llwlparamset.cpp | |
| parent | ebc604fa8d12fb08fda1ac55aae817ad0135bb6b (diff) | |
| parent | 2655c7a17ae38a073dcf8f05b0127b68edc34c95 (diff) | |
Merge with viewer 3.6.0
Diffstat (limited to 'indra/newview/llwlparamset.cpp')
| -rwxr-xr-x | indra/newview/llwlparamset.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/newview/llwlparamset.cpp b/indra/newview/llwlparamset.cpp index b04d30db55..dba3970635 100755 --- a/indra/newview/llwlparamset.cpp +++ b/indra/newview/llwlparamset.cpp @@ -33,6 +33,7 @@ #include "llglslshader.h" #include "lluictrlfactory.h" #include "llsliderctrl.h" +#include "pipeline.h" #include <llgl.h> @@ -127,6 +128,13 @@ void LLWLParamSet::update(LLGLSLShader * shader) const } } } + + if (LLPipeline::sRenderDeferred && !LLPipeline::sReflectionRender && !LLPipeline::sUnderWaterRender) + { + shader->uniform1f(LLShaderMgr::GLOBAL_GAMMA, 2.2); + } else { + shader->uniform1f(LLShaderMgr::GLOBAL_GAMMA, 1.0); + } } void LLWLParamSet::set(const std::string& paramName, float x) |
