summaryrefslogtreecommitdiffstats
path: root/Editor
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2024-09-07 03:15:44 -0700
committeryum <yum.food.vr@gmail.com>2024-09-07 03:16:28 -0700
commit489fadcbd2cff45e0f6e38eefb0d9d6766b701bb (patch)
tree6c5e275786329615a0907c4cbc549ff472852515 /Editor
parent2cf50223c6a88a6cbea64e3128c7b847dba1f8f2 (diff)
add a bunch of parameters to rorschach gimmick
Diffstat (limited to 'Editor')
-rw-r--r--Editor/tooner.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/Editor/tooner.cs b/Editor/tooner.cs
index 97b0f1e..910098d 100644
--- a/Editor/tooner.cs
+++ b/Editor/tooner.cs
@@ -1448,6 +1448,29 @@ public class ToonerGUI : ShaderGUI {
editor.FloatProperty(bc, "Count (x)");
bc = FindProperty("_Rorschach_Count_Y");
editor.FloatProperty(bc, "Count (y)");
+ bc = FindProperty("_Rorschach_Center_Randomization");
+ editor.FloatProperty(bc, "Center randomization");
+ bc = FindProperty("_Rorschach_Radius");
+ editor.FloatProperty(bc, "Radius");
+ bc = FindProperty("_Rorschach_Emission_Strength");
+ editor.FloatProperty(bc, "Emission strength");
+ bc = FindProperty("_Rorschach_Speed");
+ editor.FloatProperty(bc, "Speed");
+ bc = FindProperty("_Rorschach_Mask");
+ editor.TexturePropertySingleLine(
+ MakeLabel(bc, "Mask"),
+ bc);
+ SetKeyword("_RORSCHACH_MASK", bc.textureValue);
+ if (bc.textureValue) {
+ EditorGUI.indentLevel += 1;
+ bc = FindProperty("_Rorschach_Mask_Invert");
+ enabled = bc.floatValue > 1E-6;
+ EditorGUI.BeginChangeCheck();
+ enabled = EditorGUILayout.Toggle("Invert", enabled);
+ EditorGUI.EndChangeCheck();
+ bc.floatValue = enabled ? 1.0f : 0.0f;
+ EditorGUI.indentLevel -= 1;
+ }
EditorGUI.indentLevel -= 1;
}