From 9f21dfbafd1e93b76a8bfdf4b5a1ec1ec12d697d Mon Sep 17 00:00:00 2001 From: Matthew <25674682+spazzylemons@users.noreply.github.com> Date: Wed, 20 Sep 2023 10:48:37 -0400 Subject: [PATCH] Remove unnecessary line from Projection::get_z_far Removes a line from Projection::get_z_far that flips the normal of a plane. While this may be required for similar code elsewhere in the file, this is unnecessary here, as only the length of the normal is used and not the direction. Flipping the normal does not change its magnitude and therefore is unnecessary in this case. --- core/math/projection.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/core/math/projection.cpp b/core/math/projection.cpp index a304318e2e4..9d5dc8b4d60 100644 --- a/core/math/projection.cpp +++ b/core/math/projection.cpp @@ -408,7 +408,6 @@ real_t Projection::get_z_far() const { matrix[11] - matrix[10], matrix[15] - matrix[14]); - new_plane.normal = -new_plane.normal; new_plane.normalize(); return new_plane.d;