1
0
mirror of synced 2024-11-30 18:24:39 +01:00

Set a limit to z near to fix possible config errors.

This commit is contained in:
KillzXGaming 2022-10-22 11:04:24 -04:00
parent 4dc1bbea29
commit 4f67d2280a

View File

@ -92,7 +92,7 @@ namespace Toolbox.Library
break;
case "CameraNear":
float.TryParse(node.InnerText, out Runtime.CameraNear);
Runtime.CameraNear = (float)Math.Min(0.1, Runtime.CameraNear);
Runtime.CameraNear = (float)Math.Max(Math.Min(0.1, Runtime.CameraNear), 1.0f);
break;
case "PreviewScale":
float.TryParse(node.InnerText, out Runtime.previewScale);