Latest compatible version of Classicube from the original GitHub repository (https://github.com/ClassiCube/ClassiCube) that can be compiled on Classicube for PowerMac PPC running Mac OS X 10.4.
This commit is contained in:
12
misc/vita/textured_alpha_f.cg
Normal file
12
misc/vita/textured_alpha_f.cg
Normal file
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user