summaryrefslogtreecommitdiffstats
path: root/Editor
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2025-01-03 02:05:24 -0800
committeryum <yum.food.vr@gmail.com>2025-01-03 02:05:24 -0800
commit47579d97118476d24373e19c5dd5fdfe6ae12333 (patch)
tree5db650d9ca9a4f5d5a7c43c57d0e846d7ce8e9c6 /Editor
parent790fcbb36e1f3aa8b287338a61a3db0381dfa0ba (diff)
Fog now uses object coordinates
Also overhaul how emitter planes are specified. Use normal and tangent.
Diffstat (limited to 'Editor')
-rw-r--r--Editor/tooner.cs13
1 files changed, 9 insertions, 4 deletions
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)");