//
// Common fullscreen functions
// RvG, 11-3-09
//

float4 Desaturate(float4 col,float factor)
{
  float4 c,gray;
  float brightNess;
  brightNess=col.r*0.28+col.g*0.59+col.b*0.13;
  gray=brightNess;
  return lerp(col,gray,factor);
}
