diff options
| author | yum <yum.food.vr@gmail.com> | 2024-06-23 13:52:00 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2024-06-23 13:52:00 -0700 |
| commit | 9cc14f9f2595b41bdb7d47bbd1caba1a1167695d (patch) | |
| tree | 782167cc11a18bd5b456d8848472774762265d6a /Editor | |
| parent | 79e95c1ced341d0b7db7c2fb3a5c6c2ce623a265 (diff) | |
| parent | 01255d3804afbcaf6c3b9fb620c51291c64f9335 (diff) | |
Merge branch 'master' of ssh://github.com/yum-food/Tooner
Diffstat (limited to 'Editor')
| -rw-r--r-- | Editor/tooner.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Editor/tooner.cs b/Editor/tooner.cs index d806f88..33b23ac 100644 --- a/Editor/tooner.cs +++ b/Editor/tooner.cs @@ -496,6 +496,18 @@ public class ToonerGUI : ShaderGUI { inverted = EditorGUILayout.Toggle("Invert mask", inverted); EditorGUI.EndChangeCheck(); bc.floatValue = inverted ? 1.0f : 0.0f; + + bc = FindProperty("_Outline_Width_Multiplier"); + editor.FloatProperty( + bc, + "Outline width multiplier"); + + bc = FindProperty("_Outline_Stenciling"); + bool enabled = (bc.floatValue == 1.0); + EditorGUI.BeginChangeCheck(); + enabled = EditorGUILayout.Toggle("Enable stenciling", enabled); + EditorGUI.EndChangeCheck(); + bc.floatValue = enabled ? 1.0f : 2.0f; } } |
