From abef6da56913f1c55528103e60a50451a39628b1 Mon Sep 17 00:00:00 2001 From: WlodekM Date: Sun, 16 Jun 2024 10:35:45 +0300 Subject: initial commit --- misc/vita/textured_alpha_f.cg | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 misc/vita/textured_alpha_f.cg (limited to 'misc/vita/textured_alpha_f.cg') diff --git a/misc/vita/textured_alpha_f.cg b/misc/vita/textured_alpha_f.cg new file mode 100644 index 0000000..cc04854 --- /dev/null +++ b/misc/vita/textured_alpha_f.cg @@ -0,0 +1,12 @@ +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; +} \ No newline at end of file -- cgit 1.4.1-2-gfad0