diff options
Diffstat (limited to 'gfx/gl/camera.cpp')
-rw-r--r-- | gfx/gl/camera.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gfx/gl/camera.cpp b/gfx/gl/camera.cpp index 72b5240..fadbfd7 100644 --- a/gfx/gl/camera.cpp +++ b/gfx/gl/camera.cpp @@ -23,4 +23,5 @@ Camera::updateView() view = glm::lookAt(position, position + forward, up); unView = glm::lookAt(::origin, forward, up); viewProjection = projection * view; + inverseViewProjection = glm::inverse(viewProjection); } |