summaryrefslogtreecommitdiff
path: root/indra/newview/pipeline.cpp
diff options
context:
space:
mode:
authorRider Linden <rider@lindenlab.com>2019-02-11 17:51:42 +0000
committerRider Linden <rider@lindenlab.com>2019-02-11 17:51:42 +0000
commit5433ed60ac93c6ccc7692ad43d579a83ab544f31 (patch)
tree37e1ebaf6cb8f28c191e91f7794144d2002a691d /indra/newview/pipeline.cpp
parent9677e50626d03bff82d35035ff6b5b7d87d36dae (diff)
parentaafa561215b7b69a72d00ed709d6411f6438474d (diff)
Merged in graham_linden/viewer-eep-fixes (pull request #275)
SL-10500
Diffstat (limited to 'indra/newview/pipeline.cpp')
-rw-r--r--indra/newview/pipeline.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp
index 8bc8de3dba..efb3b7c69b 100644
--- a/indra/newview/pipeline.cpp
+++ b/indra/newview/pipeline.cpp
@@ -8507,6 +8507,8 @@ void LLPipeline::bindDeferredShader(LLGLSLShader& shader, LLRenderTarget* light_
shader.uniform1f(LLShaderMgr::DEFERRED_DEPTH_CUTOFF, RenderEdgeDepthCutoff);
shader.uniform1f(LLShaderMgr::DEFERRED_NORM_CUTOFF, RenderEdgeNormCutoff);
+ LLEnvironment& environment = LLEnvironment::instance();
+ shader.uniform1i(LLShaderMgr::SUN_UP_FACTOR, environment.getIsSunUp() ? 1 : 0);
if (shader.getUniformLocation(LLShaderMgr::DEFERRED_NORM_MATRIX) >= 0)
{