diff options
author | Ptolemy <ptolemy@lindenlab.com> | 2022-08-11 16:19:08 -0700 |
---|---|---|
committer | Ptolemy <ptolemy@lindenlab.com> | 2022-08-11 16:19:08 -0700 |
commit | bc31d4f204329d1356c9c505a856a26bc2db9aa4 (patch) | |
tree | ea839b081a897d322ce8a028c3e8d8418a548400 /indra/newview | |
parent | 8abc2ad094c150479530d2c8d99ceb7c484497d7 (diff) |
SL-17929: PBR: Fix sun reflection artifacts from lightFunc being noisy
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl | 2 |
1 files changed, 1 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 e3608a1136..7602fa9712 100644 --- a/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl +++ b/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl @@ -326,7 +326,7 @@ void main() float sa = dot(normalize(r), light_dir.xyz); float sun = texture2D(lightFunc, vec2(sa, metal)).r; vec3 sunSpec = sunlit * scol * sun; - colorSpec += sunSpec; + colorSpec += sunSpec * metal; bloom = dot(sunSpec, sunSpec) / 6; } color.rgb = colorDiffuse + colorEmissive + colorSpec; |