summaryrefslogtreecommitdiff
path: root/gfx/gl
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-04-29 19:09:36 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2023-04-29 19:09:36 +0100
commit18a76c2a4a6247ef9d18de157f5dba391d8ff244 (patch)
treeeea4ebde80e33373e7652ecf601e6c5f46d007c0 /gfx/gl
parentDrop .hpp for header only things (diff)
downloadilt-18a76c2a4a6247ef9d18de157f5dba391d8ff244.tar.bz2
ilt-18a76c2a4a6247ef9d18de157f5dba391d8ff244.tar.xz
ilt-18a76c2a4a6247ef9d18de157f5dba391d8ff244.zip
Reformat with new clang-format 16
Diffstat (limited to 'gfx/gl')
-rw-r--r--gfx/gl/camera.cpp8
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)}
{
}