summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class1/deferred/softenLightF.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/deferred/softenLightF.glsl')
-rw-r--r--indra/newview/app_settings/shaders/class1/deferred/softenLightF.glsl7
1 files changed, 2 insertions, 5 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/softenLightF.glsl b/indra/newview/app_settings/shaders/class1/deferred/softenLightF.glsl
index 19e737326d..54abd56625 100644
--- a/indra/newview/app_settings/shaders/class1/deferred/softenLightF.glsl
+++ b/indra/newview/app_settings/shaders/class1/deferred/softenLightF.glsl
@@ -154,11 +154,7 @@ vec3 post_diffuse = color.rgb;
vec3 post_spec = color.rgb;
-#ifdef WATER_FOG
- color.rgb += diffuse_srgb.rgb * diffuse_srgb.a * 0.25;
-#else
color.rgb = mix(color.rgb, diffuse_linear.rgb, diffuse_linear.a);
-#endif
if (envIntensity > 0.0)
{ //add environmentmap
@@ -209,6 +205,7 @@ vec3 post_atmo = color.rgb;
// convert to linear as fullscreen lights need to sum in linear colorspace
// and will be gamma (re)corrected downstream...
+
frag_color.rgb = srgb_to_linear(color.rgb);
- frag_color.a = 0.0; //bloom;
+ frag_color.a = bloom;
}