summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl
diff options
context:
space:
mode:
authorMichael Pohoreski <ptolemy@lindenlab.com>2022-06-23 15:43:16 +0000
committerMichael Pohoreski <ptolemy@lindenlab.com>2022-06-23 15:43:16 +0000
commit54edd8ba8b824241f3d6df9e3ffff7a7c926665d (patch)
treec106ca423af59f10077e91e1390acac45124a4b5 /indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl
parentd995ac67ae2b668d988dc395f28b219f5809c284 (diff)
parentac62a744586e4a6f1130dcdcb38f75a2d3247de1 (diff)
Merged in SL-17274_gbuffer_flags (pull request #1030)
SL-17274 gbuffer flags Approved-by: Dave Parks
Diffstat (limited to 'indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl')
-rw-r--r--indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl b/indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl
index 7700d16007..dfb93c17dc 100644
--- a/indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl
+++ b/indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl
@@ -139,7 +139,7 @@ void main()
color = mix(color.rgb, reflected_color, envIntensity);
}
- if (norm.w < 0.5)
+ if (GET_GBUFFER_FLAG(GBUFFER_FLAG_HAS_ATMOS))
{
color = mix(atmosFragLighting(color, additive, atten), fullbrightAtmosTransportFrag(color, additive, atten), diffuse.a);
color = mix(scaleSoftClipFrag(color), fullbrightScaleSoftClip(color), diffuse.a);