float4 color = tex2D( srcTex, IN.uv );
color = (-color + (pow(tex2D( srcTex, IN.uv ),Power) * Scale) )/Bias;
return color;
here's a screenshot using scale = 1.83, power = 4 and bias = 0.27
PS: this is HLSL, but i think it should be really similar