mirror of https://github.com/GNOME/gimp.git
app: remove clamps from addition, subtract and grain blend modes
This commit is contained in:
parent
39adf3627d
commit
f01374798e
|
@ -109,7 +109,6 @@ gimp_operation_addition_process_pixels (gfloat *in,
|
|||
gfloat comp = in[b] + layer[b];
|
||||
|
||||
out[b] = comp * comp_alpha + in[b] * (1.0 - comp_alpha);
|
||||
out[b] = CLAMP (out[b], 0.0, 1.0);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
@ -110,7 +110,6 @@ gimp_operation_grain_extract_process_pixels (gfloat *in,
|
|||
gfloat comp = in[b] - layer[b] + 0.5;
|
||||
|
||||
out[b] = comp * comp_alpha + in[b] * (1.0 - comp_alpha);
|
||||
out[b] = CLAMP (out[b], 0.0, 1.0);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
@ -109,7 +109,6 @@ gimp_operation_grain_merge_process_pixels (gfloat *in,
|
|||
gfloat comp = in[b] + layer[b] - 0.5;
|
||||
|
||||
out[b] = comp * comp_alpha + in[b] * (1.0 - comp_alpha);
|
||||
out[b] = CLAMP (out[b], 0.0, 1.0);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
@ -108,7 +108,6 @@ gimp_operation_subtract_process_pixels (gfloat *in,
|
|||
{
|
||||
gfloat comp = in[b] - layer[b];
|
||||
out[b] = comp * comp_alpha + in[b] * (1.0 - comp_alpha);
|
||||
out[b] = CLAMP(out[b], 0.0, 1.0);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue