summaryrefslogtreecommitdiffstats
path: root/Editor
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2024-10-07 23:33:35 -0700
committeryum <yum.food.vr@gmail.com>2024-10-07 23:33:35 -0700
commitbcadf1d091efe76e7a1b2393f87f7e24128b723b (patch)
treeb5a37c88686f15f08845d597f223473511917a34 /Editor
parente51760ab5e6d698b26b60e1811e7afce62be55d0 (diff)
Add fog gimmick
Diffstat (limited to 'Editor')
-rw-r--r--Editor/tooner.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/Editor/tooner.cs b/Editor/tooner.cs
index 8824de5..5fc26bd 100644
--- a/Editor/tooner.cs
+++ b/Editor/tooner.cs
@@ -2002,6 +2002,25 @@ public class ToonerGUI : ShaderGUI {
EditorGUI.indentLevel -= 1;
}
+ void DoGimmickFog0() {
+ MaterialProperty bc;
+
+ bc = FindProperty("_Gimmick_Fog_00_Enable_Static");
+ bool enabled = (bc.floatValue != 0.0);
+ EditorGUI.BeginChangeCheck();
+ enabled = Toggle("Fog 00", enabled);
+ EditorGUI.EndChangeCheck();
+ bc.floatValue = enabled ? 1.0f : 0.0f;
+ SetKeyword("_GIMMICK_FOG_00", enabled);
+
+ if (!enabled) {
+ return;
+ }
+
+ EditorGUI.indentLevel += 1;
+ EditorGUI.indentLevel -= 1;
+ }
+
void DoGimmicks() {
show_ui.Add(AddCollapsibleMenu("Gimmicks", "_Gimmicks"));
EditorGUI.indentLevel += 1;
@@ -2021,6 +2040,7 @@ public class ToonerGUI : ShaderGUI {
DoGimmickMirrorUVFlip();
DoGimmickLetterGrid();
DoGimmickAudiolinkChroma00();
+ DoGimmickFog0();
DoClones();
DoExplosion();
DoGeoScroll();