summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class1
diff options
context:
space:
mode:
authorBrad Linden <brad@lindenlab.com>2024-08-22 14:07:34 -0700
committerBrad Linden <brad@lindenlab.com>2024-08-22 14:07:34 -0700
commit421ee5107f6f795b89c48b068d549022b05eba60 (patch)
treecb91466c773d0ad962a5e2acaa24b37d438c936b /indra/newview/app_settings/shaders/class1
parent2c4fe4ff454490454d0bb71c1e5359747524048a (diff)
parentfc7082e93dde7ea122e7f0782f66e0aeb530596f (diff)
Merge remote-tracking branch 'origin/release/2024.08-DeltaFPS' into develop
Diffstat (limited to 'indra/newview/app_settings/shaders/class1')
-rw-r--r--indra/newview/app_settings/shaders/class1/windlight/atmosphericsFuncs.glsl3
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/newview/app_settings/shaders/class1/windlight/atmosphericsFuncs.glsl b/indra/newview/app_settings/shaders/class1/windlight/atmosphericsFuncs.glsl
index 55daa83750..359bfe8253 100644
--- a/indra/newview/app_settings/shaders/class1/windlight/atmosphericsFuncs.glsl
+++ b/indra/newview/app_settings/shaders/class1/windlight/atmosphericsFuncs.glsl
@@ -124,6 +124,9 @@ void calcAtmosphericVars(vec3 inPositionEye, vec3 light_dir, float ambFactor, ou
amblit = tmpAmbient;
additive *= vec3(1.0 - combined_haze);
+
+ // sanity clamp haze contribution
+ additive = min(additive, vec3(10));
}
vec3 srgb_to_linear(vec3 col);