Added larger epsilon to perspective camera

This commit is contained in:
Simon Lübeß
2021-04-09 19:35:08 +02:00
parent 838bb7ec2e
commit ad4933a1f9
@@ -87,9 +87,9 @@ namespace GlitchyEngine.Renderer
case .LimitedReversed:
_projection = Matrix.ReversedPerspectiveProjection(_fovY, _aspect, _nearPlane, _farPlane);
case .Infinite:
_projection = Matrix.InfinitePerspectiveProjection(_fovY, _aspect, _nearPlane); // todo: epsilon
_projection = Matrix.InfinitePerspectiveProjection(_fovY, _aspect, _nearPlane, 10e-6f); // todo: epsilon
case .InfiniteReversed:
_projection = Matrix.ReversedInfinitePerspectiveProjection(_fovY, _aspect, _nearPlane); // todo: epsilon
_projection = Matrix.ReversedInfinitePerspectiveProjection(_fovY, _aspect, _nearPlane, 10e-6f); // todo: epsilon
default:
Log.EngineLogger.Assert(false, "Unknown projection type.");
}