From 358c53eb9ffae8da890fdc7ff10952bf3958819d Mon Sep 17 00:00:00 2001 From: yum Date: Wed, 22 Jan 2025 21:04:34 -0800 Subject: Add some options to ds2_11 (terrain gimmick) Also chase down the weird clearcoat bug. --- Editor/tooner.cs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'Editor') diff --git a/Editor/tooner.cs b/Editor/tooner.cs index 4364a3c..0c06a28 100644 --- a/Editor/tooner.cs +++ b/Editor/tooner.cs @@ -2049,8 +2049,8 @@ public class ToonerGUI : ShaderGUI { bc = FindProperty("_Gimmick_DS2_11_Alpha"); RangeProperty(bc, "Alpha"); - bc = FindProperty("_Gimmick_DS2_11_XZ_Offset"); - VectorProperty(bc, "XZ offset"); + bc = FindProperty("_Gimmick_DS2_11_Offset"); + VectorProperty(bc, "Offset"); bc = FindProperty("_Gimmick_DS2_11_Octaves"); FloatProperty(bc, "Octaves"); bc = FindProperty("_Gimmick_DS2_11_March_Initial_Offset"); @@ -2067,6 +2067,12 @@ public class ToonerGUI : ShaderGUI { FloatProperty(bc, "Coord scale"); bc = FindProperty("_Gimmick_DS2_11_Height_Scale"); FloatProperty(bc, "Height scale"); + bc = FindProperty("_Gimmick_DS2_11_Height_Power"); + FloatProperty(bc, "Height power"); + bc = FindProperty("_Gimmick_DS2_11_Valley_Power"); + FloatProperty(bc, "Valley power"); + bc = FindProperty("_Gimmick_DS2_11_Valley_Depth"); + FloatProperty(bc, "Valley depth"); bc = FindProperty("_Gimmick_DS2_11_Early_Exit_Cutoff_Cos_Theta"); FloatProperty(bc, "Early exit cutoff (cos theta)"); @@ -2086,6 +2092,9 @@ public class ToonerGUI : ShaderGUI { EditorGUI.indentLevel -= 1; } + bc = FindProperty("_Gimmick_DS2_11_Normal_Epsilon"); + FloatProperty(bc, "Normal epsilon"); + EditorGUI.indentLevel -= 1; } -- cgit v1.2.3