diff options
| author | yum <yum.food.vr@gmail.com> | 2024-07-01 01:32:06 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2024-07-01 01:32:06 -0700 |
| commit | a445f2bce613757ae04927c19d36bd473ff22522 (patch) | |
| tree | 8964ca54726b5ceddde3ed9f3ab1db16b646ac2e /Editor | |
| parent | a57eca5f6f8756209018d034a12e0d75f9ee1ef5 (diff) | |
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
Diffstat (limited to 'Editor')
| -rw-r--r-- | Editor/tooner.cs | 4 |
1 files changed, 4 insertions, 0 deletions
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; |
