From 6ee2fadaa8fd782eccff29777dc93aa508c5bf74 Mon Sep 17 00:00:00 2001 From: Graham Linden Date: Tue, 23 Apr 2019 10:37:24 -0700 Subject: SL-1491 Modify handling of additive to make extreme range of glow focus/size safe from lens flare artifacts. --- indra/newview/app_settings/shaders/class2/windlight/atmosphericsF.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'indra/newview/app_settings/shaders/class2') diff --git a/indra/newview/app_settings/shaders/class2/windlight/atmosphericsF.glsl b/indra/newview/app_settings/shaders/class2/windlight/atmosphericsF.glsl index a93253c981..246dd1a56d 100644 --- a/indra/newview/app_settings/shaders/class2/windlight/atmosphericsF.glsl +++ b/indra/newview/app_settings/shaders/class2/windlight/atmosphericsF.glsl @@ -54,7 +54,7 @@ vec3 atmosFragLighting(vec3 light, vec3 additive, vec3 atten) return light; } light *= atten.r; - light += additive; + light += additive * exp(-32.0f); return light * 2.0; } -- cgit v1.2.3