diff options
| author | yum <yum.food.vr@gmail.com> | 2024-10-09 03:44:11 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2024-10-09 03:44:11 -0700 |
| commit | 5b0b45f9e4892c8e66f36211ebcb1039dd012b1b (patch) | |
| tree | 834e5881829273ec43bf36bee808202a9d5a268d /Editor | |
| parent | a396182815db14f5a6eed26799dd425506a70686 (diff) | |
Add emitter texture to fog
Diffstat (limited to 'Editor')
| -rw-r--r-- | Editor/tooner.cs | 22 |
1 files changed, 22 insertions, 0 deletions
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; } |
