diff options
Diffstat (limited to 'Editor')
| -rw-r--r-- | Editor/tooner.cs | 11 |
1 files changed, 9 insertions, 2 deletions
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; } |
