summary refs log tree commit diff
path: root/misc/vita/textured_alpha_f.cg
diff options
context:
space:
mode:
Diffstat (limited to 'misc/vita/textured_alpha_f.cg')
-rw-r--r--misc/vita/textured_alpha_f.cg12
1 files changed, 12 insertions, 0 deletions
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