From 43d56eed8503fe018d651567e26a8bab517c6cec Mon Sep 17 00:00:00 2001 From: Lubosz Sarnecki Date: Mon, 26 Feb 2024 11:30:33 +0100 Subject: [PATCH] Camera: Init default values. --- libraries/shared/src/shared/Camera.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/shared/src/shared/Camera.h b/libraries/shared/src/shared/Camera.h index 1c3de2b8e9..54dfea77cf 100644 --- a/libraries/shared/src/shared/Camera.h +++ b/libraries/shared/src/shared/Camera.h @@ -267,11 +267,11 @@ private: CameraMode _mode{ CAMERA_MODE_LOOK_AT }; glm::mat4 _transform; - glm::mat4 _projection; + glm::mat4 _projection = glm::mat4(1.f); // derived glm::vec3 _position { 0.0f, 0.0f, 0.0f }; - glm::quat _orientation; + glm::quat _orientation { 1.f, 0.f, 0.f, 0.f }; bool _isKeepLookingAt{ false }; glm::vec3 _lookingAt;