diff options
| author | yum <yum.food.vr@gmail.com> | 2024-12-01 18:00:57 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2024-12-01 18:00:57 -0800 |
| commit | a116fda8c034ab13bf8b1cf1b4cbdc4ba9eba6b0 (patch) | |
| tree | 7e6bcd3a9ea57694ce607ad702077ee254b1a50d /disinfo.cginc | |
| parent | 3089bd2ea6a3952e3ea0f31d8fc5eca1864cefab (diff) | |
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.
Diffstat (limited to 'disinfo.cginc')
| -rw-r--r-- | disinfo.cginc | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
