mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Make the text's color lerping safer
This commit is contained in:
parent
4601f7500e
commit
7b53258e62
|
@ -30,5 +30,8 @@ void main()
|
||||||
float RealAlpha = (textOutlineFrag.a + textColor.a);
|
float RealAlpha = (textOutlineFrag.a + textColor.a);
|
||||||
|
|
||||||
// simply add the color we will loose through blending
|
// simply add the color we will loose through blending
|
||||||
FragClr = vec4(finalFragColor / RealAlpha, RealAlpha);
|
if(RealAlpha > 0.0)
|
||||||
|
FragClr = vec4(finalFragColor / RealAlpha, RealAlpha);
|
||||||
|
else
|
||||||
|
FragClr = vec4(0.0, 0.0, 0.0, 0.0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue