diff options
author | Matthew <25674682+spazzylemons@users.noreply.github.com> | 2023-09-20 10:48:37 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-20 10:48:37 -0400 |
commit | 9f21dfbafd1e93b76a8bfdf4b5a1ec1ec12d697d (patch) | |
tree | f6fa34275908e327e1305325c0a9d94b0a48233a | |
parent | 0ba19c3e4afc7dccbc7beb481537383bb7a49a37 (diff) | |
download | redot-engine-9f21dfbafd1e93b76a8bfdf4b5a1ec1ec12d697d.tar.gz |
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.
-rw-r--r-- | core/math/projection.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/core/math/projection.cpp b/core/math/projection.cpp index a304318e2e..9d5dc8b4d6 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; |