From bbedf96c1650dc9887014dcc57ce72c167b3987e Mon Sep 17 00:00:00 2001 From: Christophe <62888873+christophe-lunarg@users.noreply.github.com> Date: Sat, 6 Mar 2021 17:12:03 +0100 Subject: [PATCH] Revert "Fix quaternion orientation in `glm::decompose`" --- glm/gtx/matrix_decompose.inl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/glm/gtx/matrix_decompose.inl b/glm/gtx/matrix_decompose.inl index c66a9987..694f5eca 100644 --- a/glm/gtx/matrix_decompose.inl +++ b/glm/gtx/matrix_decompose.inl @@ -159,9 +159,9 @@ namespace detail root = sqrt(trace + static_cast(1.0)); Orientation.w = static_cast(0.5) * root; root = static_cast(0.5) / root; - Orientation.x = root * (Row[2].y - Row[1].z); - Orientation.y = root * (Row[0].z - Row[2].x); - Orientation.z = root * (Row[1].x - Row[0].y); + Orientation.x = root * (Row[1].z - Row[2].y); + Orientation.y = root * (Row[2].x - Row[0].z); + Orientation.z = root * (Row[0].y - Row[1].x); } // End if > 0 else {