//
// Road tracks; no lighting, just vertex colors and blending
// 22-09-08: Created (Ruud van Gaal)
//

void main(
	  float4 inPosition : POSITION,
	  float2 inTC0      : TEXCOORD0,
	  float4 inColor    : COLOR,				// Vertex colors
	  // Output
      out float4 outPosition      : POSITION,
      out float3 outColor         : COLOR,
	  out float2 outTC0           : TEXCOORD0,
  
  // Params
  uniform float4x4 modelViewProj,
  uniform float4x4 modelMatrix
)
{
  // Transform vertex
  outPosition=mul(modelViewProj,inPosition);
  
  // Pass texcoords
  outTC0 = inTC0;

  // Pass vertex color
  outColor=inColor;
}
