Fixed that weird bug, some weird edge case with initializer lists and GLM
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include "camera.hpp"
|
||||
|
||||
Camera::Camera(glm::vec3 point, glm::vec3 dir, float w, float h, float f) {
|
||||
point = { 0.0f, 0.0f, 0.0f };
|
||||
point = point;
|
||||
direction = dir;
|
||||
w = w; h = h; focalLen = f;
|
||||
|
||||
@@ -9,11 +9,11 @@ public:
|
||||
|
||||
void Update();
|
||||
|
||||
glm::vec3 point;
|
||||
glm::vec3 direction;
|
||||
glm::vec3 planeCenter;
|
||||
glm::vec3 planeDirX;
|
||||
glm::vec3 planeDirY;
|
||||
glm::vec3 point = {};
|
||||
glm::vec3 direction = {};
|
||||
glm::vec3 planeCenter = {};
|
||||
glm::vec3 planeDirX = {};
|
||||
glm::vec3 planeDirY = {};
|
||||
float focalLen, w, h;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user