Set a limit to z near to fix possible config errors.
This commit is contained in:
parent
4dc1bbea29
commit
4f67d2280a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user