diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-03-02 11:34:50 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-03-02 11:34:50 +0000 |
commit | 4a168a95d16541b9a8338b074509bab406997a56 (patch) | |
tree | ee05615ea594f41a3dc53cf73d6e103b1f9a7024 /gfx/gl/camera.h | |
parent | Work around clang thinking this is unused in lambdas (diff) | |
download | ilt-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.h | 2 |
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; }; |