From 47579d97118476d24373e19c5dd5fdfe6ae12333 Mon Sep 17 00:00:00 2001 From: yum Date: Fri, 3 Jan 2025 02:05:24 -0800 Subject: Fog now uses object coordinates Also overhaul how emitter planes are specified. Use normal and tangent. --- Editor/tooner.cs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'Editor') diff --git a/Editor/tooner.cs b/Editor/tooner.cs index e229331..aa02b35 100644 --- a/Editor/tooner.cs +++ b/Editor/tooner.cs @@ -2387,6 +2387,9 @@ public class ToonerGUI : ShaderGUI { bc); SetKeyword("_GIMMICK_FOG_00_NOISE_2D", bc.textureValue); + bc = FindProperty("_Gimmick_Fog_00_LTCGI_Brightness"); + FloatProperty(bc, "LTCGI brightness"); + bc = FindProperty("_Gimmick_Fog_00_Emitter_Texture"); TexturePropertySingleLine( MakeLabel(bc, "Emitter texture"), @@ -2409,10 +2412,12 @@ public class ToonerGUI : ShaderGUI { VectorProperty(bc, "Location (world)"); bc = FindProperty("_Gimmick_Fog_00_Emitter0_Normal"); VectorProperty(bc, "Normal (world)"); - bc = FindProperty("_Gimmick_Fog_00_Emitter0_Scale_X"); - FloatProperty(bc, "Scale (x)"); - bc = FindProperty("_Gimmick_Fog_00_Emitter0_Scale_Y"); - FloatProperty(bc, "Scale (y)"); + bc = FindProperty("_Gimmick_Fog_00_Emitter0_Tangent"); + VectorProperty(bc, "Tangent (world)"); + bc = FindProperty("_Gimmick_Fog_00_Emitter0_Scale_T"); + FloatProperty(bc, "Scale (tangent)"); + bc = FindProperty("_Gimmick_Fog_00_Emitter0_Scale_NxT"); + FloatProperty(bc, "Scale (normal x tangent)"); bc = FindProperty("_Gimmick_Fog_00_Emitter_Brightness_Diffuse"); FloatProperty(bc, "Brightness (diffuse)"); -- cgit v1.2.3