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 | 3de4396aa4e96ae5ad1b9384b57d19caf8e674ac (patch) | |
tree | 247ef02960bbb186f3856cacf1968f65248bca4c /indra/newview/app_settings/shaders/class1/deferred/fullbrightF.glsl | |
parent | 5287c1781962a895955694b0b1660624b8aadc1d (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/fullbrightF.glsl')
-rw-r--r-- | indra/newview/app_settings/shaders/class1/deferred/fullbrightF.glsl | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/fullbrightF.glsl b/indra/newview/app_settings/shaders/class1/deferred/fullbrightF.glsl index e518bddb98..0db9586a88 100644 --- a/indra/newview/app_settings/shaders/class1/deferred/fullbrightF.glsl +++ b/indra/newview/app_settings/shaders/class1/deferred/fullbrightF.glsl @@ -23,8 +23,6 @@ varying vec4 vary_position; varying vec3 vary_normal; varying vec3 vary_fragcoord; -uniform float alpha_soften; - uniform mat4 inv_proj; vec4 getPosition(vec2 pos_screen) @@ -56,15 +54,6 @@ void main() color.rgb = fullbrightScaleSoftClip(color.rgb); - if (samp_pos.z != 0.0 && color.a < 1.0) - { - float dist_factor = alpha_soften; - float a = 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); |