From c2abacf2e7d188aa0999a38dce259b0d8e76b982 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 11 Dec 2022 14:52:09 +0000 Subject: Cache unView matrix for unprojecting mouse clicks, update only on camera movement --- gfx/gl/camera.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gfx/gl/camera.h') 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; }; -- cgit v1.2.3