Files
ClassiCube-PPC-for-MacOSX-10.4/misc/vita/textured_alpha_f.cg

12 lines
214 B
Plaintext

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;
}