From c628cbb618b1607429c2b07d91ab0ff727995e93 Mon Sep 17 00:00:00 2001 From: kyo Date: Sat, 1 Mar 2025 16:46:59 +0200 Subject: [PATCH] Remove unnecessary normalisation The vector lRayDir_world is already normalised, so there is no need to normalise it again. --- misc05_picking/misc05_picking_custom.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc05_picking/misc05_picking_custom.cpp b/misc05_picking/misc05_picking_custom.cpp index 0b414aa7..dbdaca30 100644 --- a/misc05_picking/misc05_picking_custom.cpp +++ b/misc05_picking/misc05_picking_custom.cpp @@ -76,7 +76,7 @@ void ScreenPosToWorldRay( out_origin = glm::vec3(lRayStart_world); - out_direction = glm::normalize(lRayDir_world); + out_direction = lRayDir_world; }