//
// Show velocity map (debugging)
// Needs renderer.motion_blur.method at 4 and fs_filter1=<this file>
// RvG, 25-2-09
//

struct VertOut
{
  float2 tc0 : TEXCOORD0;
};

struct FragOut
{
  float4 col : COLOR;
};

FragOut main(
  VertOut vin,
  uniform sampler2D baseMap     : TEXUNIT0,
  uniform sampler2D velocityMap : TEXUNIT1
)
{
  FragOut fout;
  
  //float4 baseColor=tex2D(baseMap,vin.tc0); 
  float4 vel=tex2D(velocityMap,vin.tc0);
  fout.col=vel;
  
  // Different channels (show only 1 channel)
  //fout.col=vel.a;
  
  return fout;
} 
