PerspectiveCamera.cs - Updated Z Far value

This commit is contained in:
miku-666
2024-01-11 18:38:56 +01:00
parent 0b154b0d3a
commit 9eecc674e3

View File

@@ -76,7 +76,7 @@ namespace PckStudio.Rendering
internal override void Update(float aspect)
{
UpdateView();
var projection = Matrix4.CreatePerspectiveFieldOfView((float)MathHelper.DegreesToRadians(Fov), aspect, 1f, 100f);
var projection = Matrix4.CreatePerspectiveFieldOfView((float)MathHelper.DegreesToRadians(Fov), aspect, 1f, 1000f);
viewProjection = viewMatrix * projection;
}