summaryrefslogtreecommitdiffstats
path: root/Editor
diff options
context:
space:
mode:
Diffstat (limited to 'Editor')
-rw-r--r--Editor/tooner.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/Editor/tooner.cs b/Editor/tooner.cs
index 0d4fcb6..414c1b2 100644
--- a/Editor/tooner.cs
+++ b/Editor/tooner.cs
@@ -307,6 +307,13 @@ public class ToonerGUI : ShaderGUI {
EditorGUI.EndChangeCheck();
bc.floatValue = enabled ? 1.0f : 0.0f;
+ if (enabled) {
+ bc = FindProperty("_Flatten_Mesh_Normals_Str");
+ editor.FloatProperty(
+ bc,
+ "Flattening strength");
+ }
+
bc = FindProperty("_Confabulate_Normals");
enabled = bc.floatValue > 1E-6;
EditorGUI.BeginChangeCheck();