summaryrefslogtreecommitdiff
path: root/gfx/gl/camera.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-03-19 23:59:49 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2023-03-19 23:59:49 +0000
commit187783a322faed9c830493cc0346376e9809c9b5 (patch)
tree3797f9bd0757cf114f1f3b8dff5fc080cb7eb27b /gfx/gl/camera.cpp
parentUse OpenMesh built-in to calculate face centre (diff)
downloadilt-187783a322faed9c830493cc0346376e9809c9b5.tar.bz2
ilt-187783a322faed9c830493cc0346376e9809c9b5.tar.xz
ilt-187783a322faed9c830493cc0346376e9809c9b5.zip
Remove (as yet) unused members from Camera
Diffstat (limited to 'gfx/gl/camera.cpp')
-rw-r--r--gfx/gl/camera.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gfx/gl/camera.cpp b/gfx/gl/camera.cpp
index b596c43..5b7269e 100644
--- a/gfx/gl/camera.cpp
+++ b/gfx/gl/camera.cpp
@@ -6,8 +6,8 @@
#include <ray.hpp>
Camera::Camera(glm::vec3 pos, float fov, float aspect, float zNear, float zFar) :
- position {pos}, forward {::north}, up {::up}, fov {fov}, aspect {aspect}, near {zNear}, far {zFar},
- projection {glm::perspective(fov, aspect, zNear, 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)}
{