diff options
Diffstat (limited to 'Editor')
| -rw-r--r-- | Editor/tooner.cs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Editor/tooner.cs b/Editor/tooner.cs index d224aa1..ae51ae5 100644 --- a/Editor/tooner.cs +++ b/Editor/tooner.cs @@ -741,13 +741,6 @@ public class ToonerGUI : ShaderGUI { bc, "UV channel"); - bc = FindProperty($"_Rim_Lighting{i}_Center_Eye_Fix"); - enabled = bc.floatValue > 1E-6; - EditorGUI.BeginChangeCheck(); - enabled = EditorGUILayout.Toggle("Center eye fix", enabled); - EditorGUI.EndChangeCheck(); - bc.floatValue = enabled ? 1.0f : 0.0f; - bc = FindProperty($"_Rim_Lighting{i}_Mask_Sampler_Mode"); SamplerMode sampler_mode = (SamplerMode) Math.Round(bc.floatValue); sampler_mode = (SamplerMode) EditorGUILayout.EnumPopup( @@ -761,6 +754,13 @@ public class ToonerGUI : ShaderGUI { EditorGUI.indentLevel -= 1; } + bc = FindProperty($"_Rim_Lighting{i}_Center_Eye_Fix"); + enabled = bc.floatValue > 1E-6; + EditorGUI.BeginChangeCheck(); + enabled = EditorGUILayout.Toggle("Center eye fix", enabled); + EditorGUI.EndChangeCheck(); + bc.floatValue = enabled ? 1.0f : 0.0f; + EditorGUI.BeginChangeCheck(); bc = FindProperty($"_Rim_Lighting{i}_Mode"); MatcapMode mode = (MatcapMode) Math.Round(bc.floatValue); |
