summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPtolemy <ptolemy@lindenlab.com>2022-06-28 10:37:33 -0700
committerPtolemy <ptolemy@lindenlab.com>2022-06-28 10:37:33 -0700
commit4de6e8808586fe1b806f955d3ddd785c6d827a16 (patch)
tree5753ccb1209d4330c796dbd4414410588588984b
parentc69d7bab9955172393ff0cc3223077154f23b4b2 (diff)
SL-17274: PBR: Add reflection vec
-rw-r--r--indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl1
1 files changed, 1 insertions, 0 deletions
diff --git a/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl b/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl
index bb14ca471d..758b267b40 100644
--- a/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl
+++ b/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl
@@ -253,6 +253,7 @@ void main()
vec3 kSpec = reflect0 + fresnelR*pow(1.0 - dotNV, 5.0);
// Reference: getIBLRadianceGGX
+ vec3 reflection = normalize(reflect(-v,n));
vec3 specLight = getSpecularPBR(reflection);
#if HAS_IBL
kSpec = mix( kSpec, iridescenceFresnel, iridescenceFactor);