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. --- Editor/tooner.cs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Editor') diff --git a/Editor/tooner.cs b/Editor/tooner.cs index fca422b..9f444d4 100644 --- a/Editor/tooner.cs +++ b/Editor/tooner.cs @@ -2045,6 +2045,13 @@ public class ToonerGUI : ShaderGUI { bc = FindProperty("_Gimmick_Letter_Grid_2_Global_Offset"); FloatProperty(bc, "Global offset"); + bc = FindProperty("_Gimmick_Letter_Grid_2_Screen_Px_Range"); + FloatProperty(bc, "Screen px range (from msdfgen)"); + bc = FindProperty("_Gimmick_Letter_Grid_2_Min_Screen_Px_Range"); + FloatProperty(bc, "Minimum screen px range"); + bc = FindProperty("_Gimmick_Letter_Grid_2_Blurriness"); + FloatProperty(bc, "Blurriness"); + EditorGUI.indentLevel -= 1; } -- cgit v1.2.3