// Performing Photoshop Screen style
// (c) 2008 Ruud van Gaal

struct FragOut
{
	float4 col : COLOR;
};

FragOut main(float2 tc0 : TEXCOORD0,
	uniform sampler2D tex0 : TEXUNIT0
)
{
  FragOut fout;

  // Take texture color
  float4 cColor=tex2D(tex0,tc0);

  // Screen
  cColor=2*cColor-cColor*cColor;

  fout.col=cColor;

  return fout;
} 
