summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings
diff options
context:
space:
mode:
authorPtolemy <ptolemy@lindenlab.com>2022-06-21 16:31:35 -0700
committerPtolemy <ptolemy@lindenlab.com>2022-06-21 16:50:09 -0700
commit36d9fa90150d30a0a0851cc0da87531014c1d93d (patch)
tree1b833c4221a81dc557d0f09c3ada62272130fa49 /indra/newview/app_settings
parent8b4347cb10ab922f5001306912983cdd73a68309 (diff)
SL-17274: Add view_dir uniform
Diffstat (limited to 'indra/newview/app_settings')
-rw-r--r--indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl b/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl
index 61757882bb..4dd5c88211 100644
--- a/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl
+++ b/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl
@@ -1,5 +1,5 @@
/**
- * @file class2/deferred/softenLightF.glsl
+ * @file class3/deferred/softenLightF.glsl
*
* $LicenseInfo:firstyear=2007&license=viewerlgpl$
* Second Life Viewer Source Code
@@ -85,6 +85,8 @@ vec3 srgb_to_linear(vec3 c);
vec4 applyWaterFogView(vec3 pos, vec4 color);
#endif
+uniform vec3 view_dir; // PBR
+
void main()
{
vec2 tc = vary_fragcoord.xy;