diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-04-29 19:09:36 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-04-29 19:09:36 +0100 |
commit | 18a76c2a4a6247ef9d18de157f5dba391d8ff244 (patch) | |
tree | eea4ebde80e33373e7652ecf601e6c5f46d007c0 /gfx/gl/camera.cpp | |
parent | Drop .hpp for header only things (diff) | |
download | ilt-18a76c2a4a6247ef9d18de157f5dba391d8ff244.tar.bz2 ilt-18a76c2a4a6247ef9d18de157f5dba391d8ff244.tar.xz ilt-18a76c2a4a6247ef9d18de157f5dba391d8ff244.zip |
Reformat with new clang-format 16
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)} { } |