struct VertOut
{
	float4 pos : POSITION;
	float4 col : COLOR0;
	float2 tc0 : TEXCOORD0;
};

struct FragOut
{
	float4 col : COLOR;
};

FragOut main(VertOut vin,
	uniform sampler2D tex0 : TEXUNIT0
      )
{
  FragOut fout;
  float4 vWeightsBW=float4(0.3,0.59,0.11,0);
  float4 vWeightsSepia=float4(0.9,0.7,0.3,1); 
  
  float4 cColor=tex2D(tex0,vin.tc0); 
  float4 cTempColor=dot(cColor,vWeightsBW);

  //float4 tcol=tex2D(tex0,vin.tc0);
  fout.col.rgba=dot(cTempColor,vWeightsSepia);
  //fout.col=cColor;
  return fout;
} 
