mirror of https://github.com/bjornbytes/lovr.git
Fix font alpha;
This commit is contained in:
parent
de090971f7
commit
1a1026bc0f
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue