From ef659428910962a270840d1448123bfc6c87cccb Mon Sep 17 00:00:00 2001 From: yum Date: Sun, 2 Feb 2025 17:50:10 -0800 Subject: More SSFD tweaks --- Editor/tooner.cs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'Editor') diff --git a/Editor/tooner.cs b/Editor/tooner.cs index 9d7de84..fae2c47 100644 --- a/Editor/tooner.cs +++ b/Editor/tooner.cs @@ -3267,14 +3267,23 @@ public class ToonerGUI : ShaderGUI { EditorGUI.indentLevel += 1; + bc = FindProperty("_Surface_Stable_Fractal_Dithering_Enable_Dynamic"); + enabled = (bc.floatValue != 0.0); + EditorGUI.BeginChangeCheck(); + enabled = Toggle("Enable (runtime switch)", enabled); + EditorGUI.EndChangeCheck(); + bc.floatValue = enabled ? 1.0f : 0.0f; + bc = FindProperty("_Surface_Stable_Fractal_Dithering_Noise"); TexturePropertySingleLine(MakeLabel(bc, "Noise"), bc); bc = FindProperty("_Surface_Stable_Fractal_Dithering_Scale"); RangeProperty(bc, "Scale"); bc = FindProperty("_Surface_Stable_Fractal_Dithering_Max_Fwidth"); FloatProperty(bc, "Max fwidth"); - bc = FindProperty("_Surface_Stable_Fractal_Dithering_Cutoff"); - RangeProperty(bc, "Cutoff"); + bc = FindProperty("_Surface_Stable_Fractal_Dithering_Size_Factor"); + FloatProperty(bc, "Size factor"); + bc = FindProperty("_Surface_Stable_Fractal_Dithering_Brightness_Factor"); + FloatProperty(bc, "Brightness factor"); EditorGUI.indentLevel -= 1; } -- cgit v1.2.3