From 1705cd25f5bcd796a560bcce22ef91d190a94900 Mon Sep 17 00:00:00 2001 From: yum Date: Thu, 24 Oct 2024 18:45:29 -0700 Subject: add water stuff --- Editor/tooner.cs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'Editor') 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; -- cgit v1.2.3