From a445f2bce613757ae04927c19d36bd473ff22522 Mon Sep 17 00:00:00 2001 From: yum Date: Mon, 1 Jul 2024 01:32:06 -0700 Subject: Add angle control to decals Also: * Fix decal mipmap calculation * Decals are now sampled with a clamping sampler, not repeat * Decal scaling now occurs at center, not bottom left --- Editor/tooner.cs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Editor') diff --git a/Editor/tooner.cs b/Editor/tooner.cs index a484bc8..ecad810 100644 --- a/Editor/tooner.cs +++ b/Editor/tooner.cs @@ -233,6 +233,10 @@ public class ToonerGUI : ShaderGUI { editor.FloatProperty( bc, "Emission strength"); + bc = FindProperty($"_Decal{i}_Angle"); + editor.RangeProperty( + bc, + "Angle"); } EditorGUI.indentLevel -= 1; -- cgit v1.2.3