home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Bitfellas Bitjam
/
bitfellasbitjamcdbitfellas2007.iso
/
interface
/
intro
/
matches.vs
< prev
next >
Wrap
Text File
|
2007-08-09
|
509b
|
20 lines
float4x4 view_proj_matrix;
struct VS_OUTPUT {
float4 Pos:POSITION;
float4 Diffuse:COLOR;
float Z:TEXCOORD0;
float2 Tex:TEXCOORD1;
};
VS_OUTPUT main(float4 inPos: POSITION, float2 inTex: TEXCOORD, float4 inDiffuse: COLOR) {
VS_OUTPUT Out;
Out.Pos = mul(view_proj_matrix, inPos);
Out.Diffuse.r = inDiffuse.r;
Out.Diffuse.g = inDiffuse.g;
Out.Diffuse.b = inDiffuse.b;
Out.Diffuse.a = 0.0;
Out.Z = Out.Pos.z;
Out.Tex = inTex;
return Out;
}