diff options
| author | yum <yum.food.vr@gmail.com> | 2024-10-17 17:56:05 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2024-10-17 17:56:05 -0700 |
| commit | dd46f7e166eabee42564b6dfe4c0a4e1d54b5e7d (patch) | |
| tree | c5c204f1e96b8b171dad1a0b7eaa9d4b3976661c /Editor | |
| parent | 182e51776a51977d480ac19e668d3c209e601766 (diff) | |
Begin work on aurora gimmick
Diffstat (limited to 'Editor')
| -rw-r--r-- | Editor/tooner.cs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Editor/tooner.cs b/Editor/tooner.cs index 028b971..7007f30 100644 --- a/Editor/tooner.cs +++ b/Editor/tooner.cs @@ -2097,6 +2097,24 @@ public class ToonerGUI : ShaderGUI { EditorGUI.indentLevel -= 1; } + void DoGimmickAurora() { + MaterialProperty bc; + + bc = FindProperty("_Gimmick_Aurora_Enable_Static"); + bool enabled = (bc.floatValue != 0.0); + EditorGUI.BeginChangeCheck(); + enabled = Toggle("Aurora", enabled); + EditorGUI.EndChangeCheck(); + bc.floatValue = enabled ? 1.0f : 0.0f; + SetKeyword("_GIMMICK_AURORA", enabled); + + if (!enabled) { + return; + } + EditorGUI.indentLevel += 1; + EditorGUI.indentLevel -= 1; + } + void DoGimmicks() { show_ui.Add(AddCollapsibleMenu("Gimmicks", "_Gimmicks")); EditorGUI.indentLevel += 1; @@ -2117,6 +2135,7 @@ public class ToonerGUI : ShaderGUI { DoGimmickLetterGrid(); DoGimmickAudiolinkChroma00(); DoGimmickFog0(); + DoGimmickAurora(); DoClones(); DoExplosion(); DoGeoScroll(); |
