diff options
| author | yum <yum.food.vr@gmail.com> | 2024-08-28 16:06:27 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2024-08-28 16:06:27 -0700 |
| commit | f4d0ad8f349bcf99470b2cfa1e9531c4c0b61d29 (patch) | |
| tree | 0da8ddc3126c4697143ad1068cc4ea0bf60563cf /Editor | |
| parent | 86c935309c24b92b8ad66ceb4fc58ed668d39ba6 (diff) | |
Emissions are now UV channel aware
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; } |
