ClassiCube/misc/vita/textured_alpha_f.cg
2023-10-06 20:00:48 +11:00

12 lines
No EOL
225 B
Text

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