summaryrefslogtreecommitdiffstats
path: root/Editor
diff options
context:
space:
mode:
Diffstat (limited to 'Editor')
-rw-r--r--Editor/tooner.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/Editor/tooner.cs b/Editor/tooner.cs
index 1da2bb9..602620b 100644
--- a/Editor/tooner.cs
+++ b/Editor/tooner.cs
@@ -146,6 +146,17 @@ public class ToonerGUI : ShaderGUI {
SetKeyword($"_PBR_OVERLAY{i}_MIX_MIN", mode == PbrAlbedoMixMode.Min);
SetKeyword($"_PBR_OVERLAY{i}_MIX_MAX", mode == PbrAlbedoMixMode.Max);
+ bc = FindProperty($"_PBR_Overlay{i}_Emission");
+ bct = FindProperty($"_PBR_Overlay{i}_EmissionTex");
+ editor.TexturePropertySingleLine(
+ MakeLabel(bct, "Emission (RGB)"),
+ bct,
+ bc);
+ if (bct.textureValue) {
+ editor.TextureScaleOffsetProperty(bct);
+ }
+ SetKeyword($"_PBR_OVERLAY{i}_EMISSION_MAP", bct.textureValue);
+
bct = FindProperty($"_PBR_Overlay{i}_NormalTex");
editor.TexturePropertySingleLine(
MakeLabel(bct, "Normal"),