summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--indra/newview/app_settings/shaders/class1/deferred/terrainF.glsl8
1 files changed, 5 insertions, 3 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/terrainF.glsl b/indra/newview/app_settings/shaders/class1/deferred/terrainF.glsl
index 9829842a0f..b49d86b2a2 100644
--- a/indra/newview/app_settings/shaders/class1/deferred/terrainF.glsl
+++ b/indra/newview/app_settings/shaders/class1/deferred/terrainF.glsl
@@ -61,12 +61,14 @@ void main()
float alpha2 = texture2D(alpha_ramp,vary_texcoord1.xy).a;
float alphaFinal = texture2D(alpha_ramp, vary_texcoord1.zw).a;
vec4 outColor = mix( mix(color3, color2, alpha2), mix(color1, color0, alpha1), alphaFinal );
-
+
+ outColor.a = 0.0; // yes, downstream atmospherics
#ifdef WATER_FOG
outColor = applyWaterFogView(pos.xyz, outColor);
+ outColor.a = 1.0; // no downstream atmo
#endif
-
- frag_data[0] = vec4(outColor.rgb, 0.0);
+
+ frag_data[0] = outColor;
frag_data[1] = vec4(0.0,0.0,0.0,0.0);
vec3 nvn = normalize(vary_normal);
frag_data[2] = vec4(encode_normal(nvn.xyz), 0.0, 0.0);