diff options
Diffstat (limited to 'gfx/gl/camera.cpp')
-rw-r--r-- | gfx/gl/camera.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gfx/gl/camera.cpp b/gfx/gl/camera.cpp index f642423..c4c9544 100644 --- a/gfx/gl/camera.cpp +++ b/gfx/gl/camera.cpp @@ -6,10 +6,10 @@ #include <ray.h> Camera::Camera(glm::vec3 pos, float fov, float aspect, float zNear, float zFar) : - position {pos}, forward {::north}, up {::up}, near {zNear}, far {zFar}, projection {glm::perspective( - fov, aspect, zNear, zFar)}, - viewProjection {projection * glm::lookAt(position, position + forward, up)}, inverseViewProjection { - glm::inverse(viewProjection)} + position {pos}, forward {::north}, up {::up}, near {zNear}, far {zFar}, + projection {glm::perspective(fov, aspect, zNear, zFar)}, + viewProjection {projection * glm::lookAt(position, position + forward, up)}, + inverseViewProjection {glm::inverse(viewProjection)} { } |