summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class3
diff options
context:
space:
mode:
authorRunitaiLinden <davep@lindenlab.com>2023-04-12 13:44:41 -0500
committerRunitaiLinden <davep@lindenlab.com>2023-04-12 13:44:41 -0500
commit63c571191489539faafd4c97b3c870fb5e630e97 (patch)
tree3399a85f87535640b8c1737be2510705be9fdec2 /indra/newview/app_settings/shaders/class3
parent84fb05efeb55ef34e0497fb7d82275fb2b9222bd (diff)
SL-19569 Don't reset probes when crossing parcel borders (whoops) and tone down glare on legacy materials.
Diffstat (limited to 'indra/newview/app_settings/shaders/class3')
-rw-r--r--indra/newview/app_settings/shaders/class3/deferred/materialF.glsl3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/app_settings/shaders/class3/deferred/materialF.glsl b/indra/newview/app_settings/shaders/class3/deferred/materialF.glsl
index 62bb09e94b..e5341386bd 100644
--- a/indra/newview/app_settings/shaders/class3/deferred/materialF.glsl
+++ b/indra/newview/app_settings/shaders/class3/deferred/materialF.glsl
@@ -411,7 +411,8 @@ void main()
applyLegacyEnv(color, legacyenv, spec, pos.xyz, norm.xyz, env);
float cur_glare = max(max(legacyenv.r, legacyenv.g), legacyenv.b);
- cur_glare *= env*4.0;
+ cur_glare = clamp(cur_glare, 0, 1);
+ cur_glare *= env;
glare += cur_glare;
}