1
0
Fork 0
mirror of https://github.com/bjornbytes/lovr.git synced 2024-07-03 04:53:35 +00:00

Fix font alpha;

This commit is contained in:
bjorn 2022-07-03 20:06:55 -07:00
parent de090971f7
commit 1a1026bc0f

View file

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