diff options
| author | yum <yum.food.vr@gmail.com> | 2024-07-12 23:59:52 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2024-07-12 23:59:58 -0700 |
| commit | d0032ecf7d258ac52ef572e26f64e18190bf9215 (patch) | |
| tree | 82a07957dfa626ccd76767b067caeb7f01615433 /Editor | |
| parent | 1ff08a3055f98f08164ac93d32798e448039a7ff (diff) | |
Add audiolink to vertex location quantization gimmick
Diffstat (limited to 'Editor')
| -rw-r--r-- | Editor/tooner.cs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Editor/tooner.cs b/Editor/tooner.cs index dedc28c..9dc90c6 100644 --- a/Editor/tooner.cs +++ b/Editor/tooner.cs @@ -860,6 +860,32 @@ public class ToonerGUI : ShaderGUI { MakeLabel(bc, "Mask"), bc); + bc = FindProperty("_Gimmick_Quantize_Location_Audiolink_Enable_Static"); + enabled = (bc.floatValue != 0.0); + EditorGUI.BeginChangeCheck(); + enabled = EditorGUILayout.Toggle("Audiolink", enabled); + EditorGUI.EndChangeCheck(); + bc.floatValue = enabled ? 1.0f : 0.0f; + SetKeyword("_GIMMICK_QUANTIZE_LOCATION_AUDIOLINK", enabled); + + if (enabled) { + EditorGUI.indentLevel += 1; + + bc = FindProperty("_Gimmick_Quantize_Location_Audiolink_Enable_Dynamic"); + enabled = (bc.floatValue != 0.0); + EditorGUI.BeginChangeCheck(); + enabled = EditorGUILayout.Toggle("Enable (runtime switch)", enabled); + EditorGUI.EndChangeCheck(); + bc.floatValue = enabled ? 1.0f : 0.0f; + + bc = FindProperty("_Gimmick_Quantize_Location_Audiolink_Strength"); + editor.FloatProperty( + bc, + "Strength"); + + EditorGUI.indentLevel -= 1; + } + EditorGUI.indentLevel -= 1; } |
