summaryrefslogtreecommitdiffstats
path: root/Editor
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2024-08-20 15:42:42 -0700
committeryum <yum.food.vr@gmail.com>2024-08-20 15:42:42 -0700
commit1edac7f959f4763ccacce2329da4c1b8dc93b4c4 (patch)
treedf8efd94f2fe6562bf0e073dfcc9631737d8085c /Editor
parentd973a2d9fe3d380b04550bc68075b9d8c369cc10 (diff)
Implement UV channel selection for matcap normals
Also fix how normals get blended with matcap mix slider.
Diffstat (limited to 'Editor')
-rw-r--r--Editor/tooner.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/Editor/tooner.cs b/Editor/tooner.cs
index 4d96d76..b51facb 100644
--- a/Editor/tooner.cs
+++ b/Editor/tooner.cs
@@ -514,6 +514,11 @@ public class ToonerGUI : ShaderGUI {
bc = FindProperty($"_Matcap{i}Normal_Str");
editor.RangeProperty(bc, "Strength");
+
+ bc = FindProperty($"_Matcap{i}Normal_UV_Select");
+ editor.RangeProperty(
+ bc,
+ "UV channel");
}
EditorGUI.indentLevel -= 1;
}