mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-25 22:10:22 +00:00
Adjustments to znear loading
This commit is contained in:
parent
94d7ab3bb1
commit
a135be0615
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ namespace Toolbox.Library
|
||||||
break;
|
break;
|
||||||
case "CameraNear":
|
case "CameraNear":
|
||||||
float.TryParse(node.InnerText, out Runtime.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;
|
break;
|
||||||
case "PreviewScale":
|
case "PreviewScale":
|
||||||
float.TryParse(node.InnerText, out Runtime.previewScale);
|
float.TryParse(node.InnerText, out Runtime.previewScale);
|
||||||
|
|
Loading…
Reference in a new issue