diff options
author | Dave Parks <davep@lindenlab.com> | 2010-03-17 22:22:02 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2010-03-17 22:22:02 -0500 |
commit | 16bbd7bf08b7b1abec0ba6b97bc4a34f753b5875 (patch) | |
tree | cb3131b9c0bf7d22193cd4af27d1a109418549be /indra/newview/app_settings/shaders/class1/deferred/alphaF.glsl | |
parent | 39a08368bb916a08da626c58908e40cf4f817f9a (diff) |
CTS-110 Remove soft alpha in deferred pipeline (breaks some content). Will revisit soft alpha in materials project.
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/deferred/alphaF.glsl')
-rw-r--r-- | indra/newview/app_settings/shaders/class1/deferred/alphaF.glsl | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/alphaF.glsl b/indra/newview/app_settings/shaders/class1/deferred/alphaF.glsl index 4fb109d687..fea2e16090 100644 --- a/indra/newview/app_settings/shaders/class1/deferred/alphaF.glsl +++ b/indra/newview/app_settings/shaders/class1/deferred/alphaF.glsl @@ -24,8 +24,6 @@ varying vec3 vary_fragcoord; varying vec3 vary_position; varying vec3 vary_light; -uniform float alpha_soften; - uniform mat4 inv_proj; vec4 getPosition(vec2 pos_screen) @@ -57,15 +55,6 @@ void main() color.rgb = scaleSoftClip(color.rgb); - if (samp_pos.z != 0.0 && gl_Color.a < 1.0) - { - float dist_factor = alpha_soften; - float a = gl_Color.a; - a *= a; - dist_factor *= 1.0/(1.0-a); - color.a *= min((pos.z-samp_pos.z)*dist_factor, 1.0); - } - //gl_FragColor = gl_Color; gl_FragColor = color; //gl_FragColor = vec4(1,0,1,1); |