diff options
author | Dave Parks <davep@lindenlab.com> | 2023-04-12 08:58:20 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2023-04-12 08:58:20 -0500 |
commit | 17615dd6b67f1ca019a44664318550240d289372 (patch) | |
tree | 9651dc4ad7c4bda91dd784f5d256e3023bb3f14f /indra/newview/app_settings/shaders/class3/deferred | |
parent | 99bcc719a71a1c74e37bcf8ead0f39d2d2641876 (diff) |
DRTVWR-559 Fix for burn-in on legacy gloss materials.
Diffstat (limited to 'indra/newview/app_settings/shaders/class3/deferred')
-rw-r--r-- | indra/newview/app_settings/shaders/class3/deferred/reflectionProbeF.glsl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/app_settings/shaders/class3/deferred/reflectionProbeF.glsl b/indra/newview/app_settings/shaders/class3/deferred/reflectionProbeF.glsl index e1b18935e8..55a43f76d0 100644 --- a/indra/newview/app_settings/shaders/class3/deferred/reflectionProbeF.glsl +++ b/indra/newview/app_settings/shaders/class3/deferred/reflectionProbeF.glsl @@ -752,6 +752,8 @@ void sampleReflectionProbesLegacy(inout vec3 ambenv, inout vec3 glossenv, inout legacyenv = mix(legacyenv, ssr.rgb, w); } #endif + + glossenv = clamp(glossenv, vec3(0), vec3(10)); } void applyGlossEnv(inout vec3 color, vec3 glossenv, vec4 spec, vec3 pos, vec3 norm) |