This commit is contained in:
MihailRis
2024-04-28 22:33:34 +03:00
parent 167388aefb
commit ef28a368cb
12 changed files with 54 additions and 51 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
#include <glm/ext.hpp>
Camera::Camera(glm::vec3 position, float fov) : fov(fov), position(position), zoom(1.0f), rotation(1.0f) {
Camera::Camera(glm::vec3 position, float fov) : fov(fov), position(position) {
updateVectors();
}
+2 -2
View File
@@ -14,8 +14,8 @@ public:
glm::vec3 position;
float zoom;
glm::mat4 rotation;
float zoom = 1.0f;
glm::mat4 rotation {1.0f};
bool perspective = true;
bool flipped = false;
float aspect = 0.0f;