summary refs log tree commit diff
path: root/misc/vita/textured_alpha_f.cg
diff options
context:
space:
mode:
authorWlodekM <[email protected]>2024-06-16 10:35:45 +0300
committerWlodekM <[email protected]>2024-06-16 10:35:45 +0300
commitabef6da56913f1c55528103e60a50451a39628b1 (patch)
treeb3c8092471ecbb73e568cd0d336efa0e7871ee8d /misc/vita/textured_alpha_f.cg
initial commit
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