diff options
| author | yum <yum.food.vr@gmail.com> | 2024-08-29 17:44:58 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2024-08-29 17:44:58 -0700 |
| commit | c72069f69f451a4e369f01ac3dac3961740127b5 (patch) | |
| tree | a463513aa741c7d3a9e2ad2fc7b468c34a99feb4 /Editor/tooner.cs | |
| parent | 6074470a44ec25a0fe4da6b96944a3997a69ffc5 (diff) | |
Add 4 more UV channels
Also make glitter & rim lighting glitter UV channel aware.
Diffstat (limited to 'Editor/tooner.cs')
| -rw-r--r-- | Editor/tooner.cs | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/Editor/tooner.cs b/Editor/tooner.cs index 4ce5bd0..74dcae7 100644 --- a/Editor/tooner.cs +++ b/Editor/tooner.cs @@ -707,6 +707,11 @@ public class ToonerGUI : ShaderGUI { bc, "Quantization"); + bc = FindProperty($"_Rim_Lighting{i}_Glitter_UV_Select"); + editor.RangeProperty( + bc, + "UV channel"); + EditorGUI.indentLevel -= 1; } @@ -934,32 +939,37 @@ public class ToonerGUI : ShaderGUI { bc = FindProperty("_Glitter_Density"); editor.FloatProperty( bc, - "Glitter density"); + "Density"); bc = FindProperty("_Glitter_Amount"); editor.FloatProperty( bc, - "Glitter amount"); + "Amount"); bc = FindProperty("_Glitter_Speed"); editor.FloatProperty( bc, - "Glitter speed"); + "Speed"); bc = FindProperty("_Glitter_Brightness"); editor.FloatProperty( bc, - "Glitter brightness"); + "Brightness"); bc = FindProperty("_Glitter_Angle"); editor.FloatProperty( bc, - "Glitter angle"); + "Angle"); bc = FindProperty("_Glitter_Power"); editor.FloatProperty( bc, - "Glitter power"); + "Power"); + + bc = FindProperty("_Glitter_UV_Select"); + editor.RangeProperty( + bc, + "UV select"); } } |
