diff options
author | Erik Kundiman <erik@megapahit.org> | 2024-06-12 15:42:27 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2024-06-12 15:42:27 +0800 |
commit | 26a5ef27cf4fb651ec5b06a5c9d0e378216aaa66 (patch) | |
tree | 55278fb559478042ddce39c47d6d7b4617fa57d9 /indra/newview/app_settings/shaders/class1/windlight | |
parent | 2b363ea35f23c956dd66fbceebf55cb2829c6c3d (diff) |
Float operands for float clamp operation
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/windlight')
-rw-r--r-- | indra/newview/app_settings/shaders/class1/windlight/atmosphericsFuncs.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/app_settings/shaders/class1/windlight/atmosphericsFuncs.glsl b/indra/newview/app_settings/shaders/class1/windlight/atmosphericsFuncs.glsl index d077670c96..a2125b2aec 100644 --- a/indra/newview/app_settings/shaders/class1/windlight/atmosphericsFuncs.glsl +++ b/indra/newview/app_settings/shaders/class1/windlight/atmosphericsFuncs.glsl @@ -98,7 +98,7 @@ void calcAtmosphericVars(vec3 inPositionEye, vec3 light_dir, float ambFactor, ou haze_glow = max(haze_glow, .001); // set a minimum "angle" (smaller glow.y allows tighter, brighter hotspot) haze_glow *= glow.x; // higher glow.x gives dimmer glow (because next step is 1 / "angle") - haze_glow = clamp(pow(haze_glow, glow.z), -100000, 100000); + haze_glow = clamp(pow(haze_glow, glow.z), -100000.0, 100000.0); // glow.z should be negative, so we're doing a sort of (1 / "angle") function // add "minimum anti-solar illumination" |