From 9d9d0044ee5b4d517d75ebfbb535589b868d494e Mon Sep 17 00:00:00 2001 From: connellpaxton Date: Mon, 19 Feb 2024 22:51:00 -0500 Subject: [PATCH] Fixed accidental redudant swizzle in visbility testing (coordinates were already transformed in the initial loading phase). --- Scene/BSP.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Scene/BSP.cpp b/Scene/BSP.cpp index c236509..a94c459 100644 --- a/Scene/BSP.cpp +++ b/Scene/BSP.cpp @@ -19,7 +19,6 @@ static inline void copy_data(void* file_data, std::string& dst, Lump& lump) { template static inline void copy_data(void* file_data, std::vector& dst, Lump& lump) { dst.resize(lump.len / sizeof(T)); - //Log::debug("%p %p\n", dst.data(), (u8*)file_data + lump.offset); std::memcpy(dst.data(), ((u8*)file_data) + lump.offset, lump.len); } @@ -72,11 +71,6 @@ void BSP::load_indices(const glm::vec3& cam_pos, bool visibility_test) { } int BSP::determine_leaf(glm::vec3 cam_pos) { - /* camera coordinate transformation */ - float tmp = cam_pos.y; - cam_pos.y = cam_pos.z; - cam_pos.z = tmp; - /* use SDF of planes to determine relative position with respect to partitioning planes */ int idx = 0; /* positive values are node indices, negative values are leaf indices */