summaryrefslogtreecommitdiff
path: root/gfx/gl/camera.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2025-03-02 11:34:50 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2025-03-02 11:34:50 +0000
commit4a168a95d16541b9a8338b074509bab406997a56 (patch)
treeee05615ea594f41a3dc53cf73d6e103b1f9a7024 /gfx/gl/camera.h
parentWork around clang thinking this is unused in lambdas (diff)
downloadilt-4a168a95d16541b9a8338b074509bab406997a56.tar.bz2
ilt-4a168a95d16541b9a8338b074509bab406997a56.tar.xz
ilt-4a168a95d16541b9a8338b074509bab406997a56.zip
Cache the camera's view matrix
Diffstat (limited to 'gfx/gl/camera.h')
-rw-r--r--gfx/gl/camera.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gfx/gl/camera.h b/gfx/gl/camera.h
index 8d53261..5c37744 100644
--- a/gfx/gl/camera.h
+++ b/gfx/gl/camera.h
@@ -82,6 +82,6 @@ private:
Direction3D up;
GlobalDistance near, far;
- glm::mat4 projection;
+ glm::mat4 view, projection;
glm::mat4 viewProjection, inverseViewProjection;
};