We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffbac6f commit bb2886bCopy full SHA for bb2886b
src/WPF.ImageEffects/Shaders/ImageShader.fx
@@ -7,7 +7,8 @@ float4 main(float2 uv : TEXCOORD) : COLOR
7
float4 texColor = tex2D(Input, uv);
8
float4 final = texColor;
9
final = texColor + brightness;
10
- final = final * (contrast + 1.0);
+ //final = final * pow((contrast + 1.0) / 1.0, 2);
11
+ final = ((final - 0.5) * pow((contrast + 1.0) / 1.0, 2)) + 0.5;
12
13
final.a = texColor.a; //restore alpha value
14
src/WPF.ImageEffects/Shaders/ImageShader.fxc
36 Bytes
0 commit comments