From 43462ea3c9fca642f3d1c8a2034ad1105082c9e0 Mon Sep 17 00:00:00 2001 From: Nicola Cerone Date: Tue, 19 Jul 2022 09:13:54 -0400 Subject: [PATCH] Fix arcball navigation by updating the basis matrix. --- renderdoc/maths/camera.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/renderdoc/maths/camera.cpp b/renderdoc/maths/camera.cpp index 0c64e865b..cfca0fb7c 100644 --- a/renderdoc/maths/camera.cpp +++ b/renderdoc/maths/camera.cpp @@ -102,6 +102,7 @@ void Camera::Update() Matrix4f d = Matrix4f::Translation(Vec3f(0.0f, 0.0f, dist)); mat = d.Mul(r.Mul(p)); + basis = mat.Transpose(); } }