Fix font alpha;

This commit is contained in:
bjorn 2022-07-03 20:06:55 -07:00
parent de090971f7
commit 1a1026bc0f
1 changed files with 1 additions and 1 deletions

View File

@ -20,5 +20,5 @@ void main() {
float screenPxDistance = screenPxRange() * (sdf - .5);
float alpha = clamp(screenPxDistance + .5, 0., 1.);
if (alpha <= 0.) discard;
PixelColors[0] = vec4(FragColor.rgb, alpha);
PixelColors[0] = vec4(FragColor.rgb, FragColor.a * alpha);
}