From c72069f69f451a4e369f01ac3dac3961740127b5 Mon Sep 17 00:00:00 2001 From: yum Date: Thu, 29 Aug 2024 17:44:58 -0700 Subject: Add 4 more UV channels Also make glitter & rim lighting glitter UV channel aware. --- Editor/tooner.cs | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to 'Editor/tooner.cs') 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"); } } -- cgit v1.2.3