summaryrefslogtreecommitdiffstats
path: root/Editor
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2024-11-26 02:43:54 -0800
committeryum <yum.food.vr@gmail.com>2024-11-26 02:43:54 -0800
commit625b8130fd394b1af29e1bee43cb236190666ee5 (patch)
tree14632a1df08bdbaccc6cabc76960a2b77119aa5b /Editor
parent8bc2ce35d518a37cc07fba23613d85822c9c0ea6 (diff)
Add multiply mode to pbr overlays
Diffstat (limited to 'Editor')
-rw-r--r--Editor/tooner.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/Editor/tooner.cs b/Editor/tooner.cs
index 18aeaf7..3a158c8 100644
--- a/Editor/tooner.cs
+++ b/Editor/tooner.cs
@@ -322,7 +322,8 @@ public class ToonerGUI : ShaderGUI {
AlphaBlend,
Add,
Min,
- Max
+ Max,
+ Multiply
};
void DoPBROverlay() {
@@ -367,6 +368,7 @@ public class ToonerGUI : ShaderGUI {
SetKeyword($"_PBR_OVERLAY{i}_MIX_ADD", mode == PbrAlbedoMixMode.Add);
SetKeyword($"_PBR_OVERLAY{i}_MIX_MIN", mode == PbrAlbedoMixMode.Min);
SetKeyword($"_PBR_OVERLAY{i}_MIX_MAX", mode == PbrAlbedoMixMode.Max);
+ SetKeyword($"_PBR_OVERLAY{i}_MIX_MULTIPLY", mode == PbrAlbedoMixMode.Multiply);
bc = FindProperty($"_PBR_Overlay{i}_Constrain_By_Alpha");
enabled = bc.floatValue > 1E-6;
@@ -501,6 +503,7 @@ public class ToonerGUI : ShaderGUI {
SetKeyword($"_PBR_OVERLAY{i}_MIX_ADD", false);
SetKeyword($"_PBR_OVERLAY{i}_MIX_MIN", false);
SetKeyword($"_PBR_OVERLAY{i}_MIX_MAX", false);
+ SetKeyword($"_PBR_OVERLAY{i}_MIX_MULTIPLY", false);
SetKeyword($"_PBR_OVERLAY{i}_EMISSION_MAP", false);
SetKeyword($"_PBR_OVERLAY{i}_NORMAL_MAP", false);
SetKeyword($"_PBR_OVERLAY{i}_METALLIC_MAP", false);