voxeling and that

This commit is contained in:
Ben
2019-10-10 21:41:32 +01:00
parent a9e736ec10
commit b2bfa01fc3
7 changed files with 81 additions and 36 deletions

View File

@@ -1,6 +1,9 @@
#include "camera.hpp"
Camera::Camera() {
Camera::Camera(int w, int h) {
projMatrix = glm::perspective(glm::radians(45.0f), (float)w / float(h), 0.1f, 1000.0f);
roll = 0.0f;
pitch = 0.0f;
yaw = 0.0f;
@@ -32,6 +35,10 @@ glm::mat4 Camera::GetViewMatrix() {
return viewMatrix;
}
glm::mat4 Camera::GetProjectionMatrix() {
return projMatrix;
}
glm::vec3 Camera::GetPos() {
return eyeVector;
}