Added MSDF to Font and FontRenderer

This commit is contained in:
Simon Lübeß
2021-09-19 21:19:00 +02:00
parent 764b9f27b6
commit 2afff4ec20
5 changed files with 211 additions and 254 deletions
-2
View File
@@ -43,9 +43,7 @@ float4 PS(PS_Input input) : SV_Target0
float screenPxDistance = screenPixelRange * (sd - 0.5);
float opacity = clamp(screenPxDistance + 0.5, 0.0, 1.0);
//color = mix(bgColor, fgColor, opacity);
//float4 color = lerp(float4(0, 0, 0, 0), input.Color, opacity);
//return color;
return float4(input.Color.rgb, opacity * input.Color.a);