app: burn-mode, invert before blending

parent 23f11863
......@@ -108,10 +108,10 @@ gimp_operation_burn_mode_process_pixels (gfloat *in,
for (b = RED; b < ALPHA; b++)
{
gfloat comp = (1.0 - in[b]) / layer[b];
gfloat comp = 1.0 - (1.0 - in[b]) / layer[b];
out[b] = comp * ratio + in[b] * (1.0 - ratio);
out[b] = CLAMP (1.0 - out[b], 0.0, 1.0);
out[b] = CLAMP (out[b], 0.0, 1.0);
}
}
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment