float4x4 matAll;
float4x4 matWorld;

struct VS_INPUT
{
  float4 position: POSITION;
  float2 texCoord: TEXCOORD0;
};

struct VS_OUTPUT
{
  float4 position: POSITION;
  float2 texCoord: TEXCOORD0;
  float3 texProj: TEXCOORD1;

};

VS_OUTPUT main( VS_INPUT IN )
{
   VS_OUTPUT OUT;
     OUT.texCoord=IN.texCoord;
     OUT.position = mul( IN.position, matAll );
     OUT.texProj=float3(OUT.position.x,-OUT.position.y,OUT.position.w);
   return OUT;
}
