From a135be06153584f900b953738f327ef272212cf6 Mon Sep 17 00:00:00 2001 From: KillzXGaming Date: Sat, 22 Oct 2022 11:05:33 -0400 Subject: [PATCH] Adjustments to znear loading --- Switch_Toolbox_Library/Config.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Switch_Toolbox_Library/Config.cs b/Switch_Toolbox_Library/Config.cs index e7697c36..873ecd70 100644 --- a/Switch_Toolbox_Library/Config.cs +++ b/Switch_Toolbox_Library/Config.cs @@ -92,7 +92,7 @@ namespace Toolbox.Library break; case "CameraNear": float.TryParse(node.InnerText, out Runtime.CameraNear); - Runtime.CameraNear = (float)Math.Max(Math.Min(0.1, Runtime.CameraNear), 1.0f); + Runtime.CameraNear = (float)Math.Min(Math.Max(0.1, Runtime.CameraNear), 1.0f); break; case "PreviewScale": float.TryParse(node.InnerText, out Runtime.previewScale);