From a116fda8c034ab13bf8b1cf1b4cbdc4ba9eba6b0 Mon Sep 17 00:00:00 2001 From: yum Date: Sun, 1 Dec 2024 18:00:57 -0800 Subject: Add smoothness control to msdf font renderer Also rescale atlas so we can use texture sizes that are not a perfect multiple of the grid size. --- disinfo.cginc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'disinfo.cginc') diff --git a/disinfo.cginc b/disinfo.cginc index 8a6a162..faa9489 100644 --- a/disinfo.cginc +++ b/disinfo.cginc @@ -89,7 +89,7 @@ float4 renderInBox(int c, float2 uv, float2 cell_uv, texture2D font, int2 font_r #if 0 float4 font_color = font.Sample(linear_clamp_s, letter_uv); #else - float4 font_color = font.SampleLevel(linear_clamp_s, letter_uv, 0); + float4 font_color = font.SampleLevel(linear_repeat_s, letter_uv, 0); #endif return font_color; } -- cgit v1.2.3