Merge pull request #4525 from Tyriar/4161_dim

Don't apply dim to background color
This commit is contained in:
Daniel Imms
2023-05-20 09:43:16 -07:00
committed by GitHub
8 changed files with 61 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;
}