home *** CD-ROM | disk | FTP | other *** search
/ Bitfellas Bitjam / bitfellasbitjamcdbitfellas2007.iso / interface / intro / matches.vs < prev    next >
Text File  |  2007-08-09  |  509b  |  20 lines

  1. float4x4 view_proj_matrix;
  2.  
  3. struct VS_OUTPUT {
  4.     float4 Pos:POSITION;
  5.     float4 Diffuse:COLOR;
  6.     float  Z:TEXCOORD0;
  7.     float2 Tex:TEXCOORD1;
  8. };
  9. VS_OUTPUT main(float4 inPos: POSITION, float2 inTex: TEXCOORD, float4 inDiffuse: COLOR) {
  10.     VS_OUTPUT Out;
  11.     Out.Pos = mul(view_proj_matrix, inPos);
  12.     Out.Diffuse.r = inDiffuse.r;
  13.     Out.Diffuse.g = inDiffuse.g;
  14.     Out.Diffuse.b = inDiffuse.b;
  15.     Out.Diffuse.a = 0.0;
  16.     Out.Z = Out.Pos.z;
  17.     Out.Tex = inTex;
  18.     return Out;
  19. }
  20.