summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class1/deferred/emissiveF.glsl
diff options
context:
space:
mode:
authorRunitaiLinden <davep@lindenlab.com>2023-04-14 19:24:21 -0500
committerRunitaiLinden <davep@lindenlab.com>2023-04-14 19:24:21 -0500
commit03bd681564f0b0a630f6330ab9c61daa4856e5fe (patch)
tree8776c76ae0faaa4e35cb0af7ff9d1a578cb2a2ee /indra/newview/app_settings/shaders/class1/deferred/emissiveF.glsl
parentd32bca67f17b978387ece4d9b220fc7b4d74a89b (diff)
DRTVWR-559 Balance night scenes against release, nudge glow down a smidge, remove exposure correction from legacy fullbright balance PBR materials against legacy.
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/deferred/emissiveF.glsl')
-rw-r--r--indra/newview/app_settings/shaders/class1/deferred/emissiveF.glsl9
1 files changed, 3 insertions, 6 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/emissiveF.glsl b/indra/newview/app_settings/shaders/class1/deferred/emissiveF.glsl
index 17e24a2bf2..3c51a8e44c 100644
--- a/indra/newview/app_settings/shaders/class1/deferred/emissiveF.glsl
+++ b/indra/newview/app_settings/shaders/class1/deferred/emissiveF.glsl
@@ -36,11 +36,8 @@ VARYING vec2 vary_texcoord0;
void main()
{
- float shadow = 1.0;
-
- vec4 color = diffuseLookup(vary_texcoord0.xy)*vertex_color;
- color.rgb = fullbrightAtmosTransport(color.rgb);
-
- frag_color = max(color, vec4(0));
+ // NOTE: when this shader is used, only alpha is being written to
+ float a = diffuseLookup(vary_texcoord0.xy).a*vertex_color.a;
+ frag_color = vec4(0, 0, 0, a);
}