From f4d0ad8f349bcf99470b2cfa1e9531c4c0b61d29 Mon Sep 17 00:00:00 2001 From: yum Date: Wed, 28 Aug 2024 16:06:27 -0700 Subject: Emissions are now UV channel aware --- Editor/tooner.cs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'Editor') diff --git a/Editor/tooner.cs b/Editor/tooner.cs index 9248f37..51e13b5 100644 --- a/Editor/tooner.cs +++ b/Editor/tooner.cs @@ -410,8 +410,15 @@ public class ToonerGUI : ShaderGUI { bct); SetKeyword($"_EMISSION{i}", bc.textureValue); - bc = FindProperty($"_Emission{i}Multiplier"); - editor.RangeProperty(bc, "Multiplier"); + if (bc.textureValue) { + bc = FindProperty($"_Emission{i}_UV_Select"); + editor.RangeProperty( + bc, + "UV channel"); + + bc = FindProperty($"_Emission{i}Multiplier"); + editor.RangeProperty(bc, "Multiplier"); + } } EditorGUI.indentLevel -= 1; } -- cgit v1.2.3