From 2b8c63cd18cb132335f0f45bb55efe1a9659bc26 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Fri, 28 Jan 2022 21:14:01 +0100 Subject: Fix initialization of rotation quaternion --- tangle/util/camera.h | 1 + 1 file changed, 1 insertion(+) (limited to 'tangle') diff --git a/tangle/util/camera.h b/tangle/util/camera.h index b54ad86..1118fd6 100644 --- a/tangle/util/camera.h +++ b/tangle/util/camera.h @@ -38,6 +38,7 @@ Camera(float3 target, float distance): _distance(distance), _target(target.x, target.y, target.z), _rotating(false), + _rotation(1,0,0,0), _moving(false), _restricted_x(false), _restricted_y(false) { -- cgit v1.2.3