summaryrefslogtreecommitdiffstats
path: root/Editor
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2024-10-24 18:45:29 -0700
committeryum <yum.food.vr@gmail.com>2024-10-24 18:45:29 -0700
commit1705cd25f5bcd796a560bcce22ef91d190a94900 (patch)
tree122c80d25228e2e7c83fa720982576535223ebab /Editor
parent09aa66c9c13965105133ca000da4d2c37d455877 (diff)
add water stuff
Diffstat (limited to 'Editor')
-rw-r--r--Editor/tooner.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/Editor/tooner.cs b/Editor/tooner.cs
index 2a6d805..bd98d37 100644
--- a/Editor/tooner.cs
+++ b/Editor/tooner.cs
@@ -2136,6 +2136,27 @@ public class ToonerGUI : ShaderGUI {
int num_octaves = (int) Math.Floor((bc.floatValue-1)/4);
SetKeyword("_GIMMICK_GERSTNER_WATER_OCTAVE_1", num_octaves >= 1);
+ bc = FindProperty("_Gimmick_Gerstner_Water_Color_Ramp");
+ TexturePropertySingleLine(
+ MakeLabel(bc, "Color ramp"),
+ bc);
+ SetKeyword("_GIMMICK_GERSTNER_WATER_COLOR_RAMP", bc.textureValue);
+
+ if (bc.textureValue) {
+ EditorGUI.indentLevel += 1;
+
+ bc = FindProperty("_Gimmick_Gerstner_Water_Color_Ramp_Offset");
+ FloatProperty(bc, "Offset");
+ bc = FindProperty("_Gimmick_Gerstner_Water_Color_Ramp_Scale");
+ FloatProperty(bc, "Scale");
+ bc = FindProperty("_Gimmick_Gerstner_Water_Color_Ramp_Mask");
+ VectorProperty(bc, "Mask (octave 0)");
+ bc = FindProperty("_Gimmick_Gerstner_Water_Color_Ramp_Mask1");
+ VectorProperty(bc, "Mask (octave 1)");
+
+ EditorGUI.indentLevel -= 1;
+ }
+
{
LabelField("Octave 0", EditorStyles.boldLabel);
EditorGUI.indentLevel += 1;