summaryrefslogtreecommitdiff
path: root/tangle/util/camera.h
diff options
context:
space:
mode:
authorAdrian Kummerlaender2022-01-28 21:14:01 +0100
committerAdrian Kummerlaender2022-01-28 21:14:01 +0100
commit2b8c63cd18cb132335f0f45bb55efe1a9659bc26 (patch)
tree11bc7128136973bcc81357275bbd49eca8444428 /tangle/util/camera.h
parent186bfae321f9d34b702a7c31b420eed4d10e7a50 (diff)
downloadLiterateLB-master.tar
LiterateLB-master.tar.gz
LiterateLB-master.tar.bz2
LiterateLB-master.tar.lz
LiterateLB-master.tar.xz
LiterateLB-master.tar.zst
LiterateLB-master.zip
Fix initialization of rotation quaternionHEADmaster
Diffstat (limited to 'tangle/util/camera.h')
-rw-r--r--tangle/util/camera.h1
1 files changed, 1 insertions, 0 deletions
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) {