summaryrefslogtreecommitdiff
path: root/indra/newview/pipeline.cpp
diff options
context:
space:
mode:
authorMichael Pohoreski <ptolemy@lindenlab.com>2022-06-23 14:53:36 +0000
committerMichael Pohoreski <ptolemy@lindenlab.com>2022-06-23 14:53:36 +0000
commitd995ac67ae2b668d988dc395f28b219f5809c284 (patch)
tree0caf93cd03728bb4c5fbd52fb339531c765c6676 /indra/newview/pipeline.cpp
parent6540b4c480d1d4b4c8342a0d093d09f525485659 (diff)
parentd67e1f4f91e4b206e36343ee31fa4877dd58c01c (diff)
Merged in SL-17274_view_dir (pull request #1029)
SL-17274: Add view_dir uniform Approved-by: Dave Parks
Diffstat (limited to 'indra/newview/pipeline.cpp')
-rw-r--r--indra/newview/pipeline.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp
index 06c9d3c136..030c7b450d 100644
--- a/indra/newview/pipeline.cpp
+++ b/indra/newview/pipeline.cpp
@@ -8596,6 +8596,12 @@ void LLPipeline::renderDeferredLighting(LLRenderTarget *screen_target)
soften_shader.uniform1i(LLShaderMgr::SUN_UP_FACTOR, environment.getIsSunUp() ? 1 : 0);
soften_shader.uniform4fv(LLShaderMgr::LIGHTNORM, 1, environment.getClampedLightNorm().mV);
+ if(LLPipeline::sRenderPBR)
+ {
+ LLVector3 cameraAtAxis = LLViewerCamera::getInstance()->getAtAxis();
+ soften_shader.uniform3fv(LLShaderMgr::DEFERRED_VIEW_DIR, 1, cameraAtAxis.mV);
+ }
+
{
LLGLDepthTest depth(GL_FALSE);
LLGLDisable blend(GL_BLEND);