mirror of https://github.com/GNOME/gimp.git
app: burn-mode, invert before blending
This commit is contained in:
parent
23f118632c
commit
8ca9bfc291
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue