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:
29
misc/xbox/vs_textured.vs.cg
Normal file
29
misc/xbox/vs_textured.vs.cg
Normal file
@@ -0,0 +1,29 @@
|
||||
struct vIn {
|
||||
float4 tex : TEXCOORD;
|
||||
float4 color : DIFFUSE;
|
||||
float4 position : POSITION;
|
||||
};
|
||||
|
||||
struct vOut {
|
||||
float4 pos : POSITION;
|
||||
float4 col : COLOR;
|
||||
float4 tex : TEXCOORD0;
|
||||
};
|
||||
|
||||
vOut main(
|
||||
vIn input,
|
||||
uniform float4x4 mvp
|
||||
)
|
||||
{
|
||||
vOut result;
|
||||
float4 position;
|
||||
|
||||
position = float4(input.position.xyz, 1.0f);
|
||||
position = mul(position, mvp);
|
||||
position.xyz = position.xyz / position.w;
|
||||
|
||||
result.pos = position;
|
||||
result.col = input.color;
|
||||
result.tex = input.tex;
|
||||
return result;
|
||||
}
|
||||
Reference in New Issue
Block a user