summaryrefslogtreecommitdiffstats
path: root/Editor
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2024-05-30 01:17:44 -0700
committeryum <yum.food.vr@gmail.com>2024-05-30 01:17:44 -0700
commit41dd4d9cdc5c20ad448df5d575d4b87f3b3e80b8 (patch)
treefee8741b085d063f131c36d1395d0ed8c60ff89b /Editor
parentad79981dfddd3f787011334490d137e0a9a0ffb8 (diff)
Add overlay emission
Also start fixing LOD logic for tiling textures
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"),