diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-12-11 14:52:09 +0000 |
---|---|---|
committer | Dan Goodliffe <dan.goodliffe@octal.co.uk> | 2022-12-12 09:21:54 +0000 |
commit | c2abacf2e7d188aa0999a38dce259b0d8e76b982 (patch) | |
tree | 91bed055ce71f3a848753eb8212807d710f71678 /gfx/gl/camera.h | |
parent | Cache view and viewProject matrices, update only on camera movement (diff) | |
download | ilt-c2abacf2e7d188aa0999a38dce259b0d8e76b982.tar.bz2 ilt-c2abacf2e7d188aa0999a38dce259b0d8e76b982.tar.xz ilt-c2abacf2e7d188aa0999a38dce259b0d8e76b982.zip |
Cache unView matrix for unprojecting mouse clicks, update only on camera movement
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 94eb8fc..bcc7469 100644 --- a/gfx/gl/camera.h +++ b/gfx/gl/camera.h @@ -60,6 +60,6 @@ private: float fov, aspect, near, far;
glm::mat4 projection;
- glm::mat4 view;
+ glm::mat4 view, unView;
glm::mat4 viewProjection;
};
|