float4 main ( uniform sampler2D tex, float4 out_color : COLOR, float2 out_texcoord : TEXCOORD0 ) : COLOR { float4 color = tex2D(tex, out_texcoord) * out_color; if (color.a < 0.5) discard; return color; }