diff options
author | Dan Goodliffe <dan.goodliffe@octal.co.uk> | 2022-12-13 12:07:40 +0000 |
---|---|---|
committer | Dan Goodliffe <dan.goodliffe@octal.co.uk> | 2022-12-13 12:07:40 +0000 |
commit | 6bff7aeb8e613b30323bc973f0506531e148ade3 (patch) | |
tree | 2aed6f9218a38e5bb271b257319e6acc2325de1a /gfx/gl/camera.h | |
parent | Cache unView matrix for unprojecting mouse clicks, update only on camera move... (diff) | |
download | ilt-6bff7aeb8e613b30323bc973f0506531e148ade3.tar.bz2 ilt-6bff7aeb8e613b30323bc973f0506531e148ade3.tar.xz ilt-6bff7aeb8e613b30323bc973f0506531e148ade3.zip |
Maintain a camera's inverse view projection 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 bcc7469..3182969 100644 --- a/gfx/gl/camera.h +++ b/gfx/gl/camera.h @@ -61,5 +61,5 @@ private: float fov, aspect, near, far;
glm::mat4 projection;
glm::mat4 view, unView;
- glm::mat4 viewProjection;
+ glm::mat4 viewProjection, inverseViewProjection;
};
|