Don't apply dim to background color

Fixes #4161
This commit is contained in:
Daniel Imms
2023-05-20 08:13:50 -07:00
parent 913cb25863
commit 539fed4daa
7 changed files with 12 additions and 17 deletions
@@ -304,12 +304,6 @@ export class TextureAtlas implements ITextureAtlas {
break;
}
if (dim) {
// Blend here instead of using opacity because transparent colors mess with clipping the
// glyph's bounding box
result = color.blend(this._config.colors.background, color.multiplyOpacity(result, DIM_OPACITY));
}
return result;
}