mirror of
https://github.com/bjornbytes/lovr.git
synced 2024-07-05 13:53:38 +00:00
Fix font alpha;
This commit is contained in:
parent
de090971f7
commit
1a1026bc0f
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue