diff options
| author | yum <yum.food.vr@gmail.com> | 2024-08-24 17:42:48 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2024-08-24 17:42:48 -0700 |
| commit | c6e283974130ff2bbbbeae7d23ae1e06ee6d3f5b (patch) | |
| tree | 41a23606dec0eeb299423ff26cbd37beb7e6bb87 /Editor | |
| parent | d5a45df4a443cd562ebbe96137b669723bd31bf0 (diff) | |
Add mipmap bias for overlays and matcap normals
Diffstat (limited to 'Editor')
| -rw-r--r-- | Editor/tooner.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Editor/tooner.cs b/Editor/tooner.cs index c3732cd..81dfa2f 100644 --- a/Editor/tooner.cs +++ b/Editor/tooner.cs @@ -316,6 +316,9 @@ public class ToonerGUI : ShaderGUI { bc.floatValue = (int) sampler_mode; SetKeyword($"_PBR_OVERLAY{i}_SAMPLER_REPEAT", sampler_mode == SamplerMode.Repeat); SetKeyword($"_PBR_OVERLAY{i}_SAMPLER_CLAMP", sampler_mode == SamplerMode.Clamp); + + bc = FindProperty($"_PBR_Overlay{i}_Mip_Bias"); + editor.FloatProperty(bc, "Mip bias"); } else { SetKeyword($"_PBR_OVERLAY{i}_BASECOLOR_MAP", false); SetKeyword($"_PBR_OVERLAY{i}_MIX_ALPHA_BLEND", false); @@ -533,6 +536,9 @@ public class ToonerGUI : ShaderGUI { editor.RangeProperty( bc, "UV channel"); + + bc = FindProperty($"_Matcap{i}Normal_Mip_Bias"); + editor.FloatProperty(bc, "Mip bias"); } EditorGUI.indentLevel -= 1; } |
