From 5b0b45f9e4892c8e66f36211ebcb1039dd012b1b Mon Sep 17 00:00:00 2001 From: yum Date: Wed, 9 Oct 2024 03:44:11 -0700 Subject: Add emitter texture to fog --- Editor/tooner.cs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'Editor') diff --git a/Editor/tooner.cs b/Editor/tooner.cs index 156e8c2..9f689aa 100644 --- a/Editor/tooner.cs +++ b/Editor/tooner.cs @@ -2038,6 +2038,28 @@ public class ToonerGUI : ShaderGUI { bc = FindProperty("_Gimmick_Fog_00_Ray_Origin_Randomization"); RangeProperty(bc, "Ray origin randomization"); + bc = FindProperty("_Gimmick_Fog_00_Emitter_Texture"); + TexturePropertySingleLine( + MakeLabel(bc, "Emitter texture"), + bc); + SetKeyword("_GIMMICK_FOG_00_EMITTER_TEXTURE", bc.textureValue); + if (bc.textureValue) { + EditorGUI.indentLevel += 1; + + bc = FindProperty("_Gimmick_Fog_00_Emitter_Location"); + VectorProperty(bc, "Location (world)"); + bc = FindProperty("_Gimmick_Fog_00_Emitter_Normal"); + VectorProperty(bc, "Normal (world)"); + bc = FindProperty("_Gimmick_Fog_00_Emitter_Scale_X"); + FloatProperty(bc, "Scale (x)"); + bc = FindProperty("_Gimmick_Fog_00_Emitter_Scale_Y"); + FloatProperty(bc, "Scale (y)"); + bc = FindProperty("_Gimmick_Fog_00_Emitter_Brightness"); + FloatProperty(bc, "Brightness"); + + EditorGUI.indentLevel -= 1; + } + EditorGUI.indentLevel -= 1; } -- cgit v1.2.3