Added larger epsilon to perspective camera

This commit is contained in:
Simon Lübeß
2021-03-26 19:12:41 +01:00
parent 5a6abc9b8b
commit 79e160348b
@@ -87,9 +87,9 @@ namespace GlitchyEngine.Renderer
case .LimitedReversed: case .LimitedReversed:
_projection = Matrix.ReversedPerspectiveProjection(_fovY, _aspect, _nearPlane, _farPlane); _projection = Matrix.ReversedPerspectiveProjection(_fovY, _aspect, _nearPlane, _farPlane);
case .Infinite: case .Infinite:
_projection = Matrix.InfinitePerspectiveProjection(_fovY, _aspect, _nearPlane); // todo: epsilon _projection = Matrix.InfinitePerspectiveProjection(_fovY, _aspect, _nearPlane, 10e-6f); // todo: epsilon
case .InfiniteReversed: case .InfiniteReversed:
_projection = Matrix.ReversedInfinitePerspectiveProjection(_fovY, _aspect, _nearPlane); // todo: epsilon _projection = Matrix.ReversedInfinitePerspectiveProjection(_fovY, _aspect, _nearPlane, 10e-6f); // todo: epsilon
default: default:
Log.EngineLogger.Assert(false, "Unknown projection type."); Log.EngineLogger.Assert(false, "Unknown projection type.");
} }