mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
Added MSDF to Font and FontRenderer
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user