// This is C3E2v_varying from "The Cg Tutorial" (Addison-Wesley, ISBN
// 0321194969) by Randima Fernando and Mark J. Kilgard.  See page 65.

float4x4 ModelViewProj;

struct C3E2v_Output {
  float4 position : POSITION;
  float3 color    : COLOR;
  float2 texCoord : TEXCOORD0;
};

C3E2v_Output C3E2v_varying(float4 position : POSITION,
                           float3 color    : COLOR,
                           float2 texCoord : TEXCOORD0
                           )
{
  C3E2v_Output OUT;
  
  OUT.position = mul(ModelViewProj, position);
  
  OUT.color    = color;
  OUT.texCoord = texCoord;

  return OUT;	
}

