summaryrefslogtreecommitdiffstats
path: root/Editor
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2025-02-02 17:50:10 -0800
committeryum <yum.food.vr@gmail.com>2025-02-02 17:50:10 -0800
commitef659428910962a270840d1448123bfc6c87cccb (patch)
tree119fd7f7540039025d0ef6d7e8ceda689e28d54e /Editor
parent5f819329a161d54076d025d6f61656f262094c07 (diff)
More SSFD tweaks
Diffstat (limited to 'Editor')
-rw-r--r--Editor/tooner.cs13
1 files changed, 11 insertions, 2 deletions
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;
}