Commit 7ee6faea authored by Zéfling's avatar Zéfling 🎨
Browse files

fix calculation alpha with mask opacity

parent 5e0e3481
......@@ -134,7 +134,7 @@ export class Coloration {
const B = baseColor.intColor & 0x0000FF;
if (additionalColor.alpha) {
this.calcColor.alpha = this.minmax(baseColor.alpha + additionalColor.alpha, 0, 1);
this.calcColor.alpha = this.minmax(baseColor.alpha + additionalColor.alpha * opacity, 0, 1);
}
this.calcColor.intColor = this.rgbToInt(
Math.round(((additionalColor.intColor >> 16) - R) * lum) + R,
......
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