summaryrefslogtreecommitdiffstats
path: root/src/RendererWorld.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/RendererWorld.cpp')
-rw-r--r--src/RendererWorld.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/RendererWorld.cpp b/src/RendererWorld.cpp
index b5120c2..b6e504d 100644
--- a/src/RendererWorld.cpp
+++ b/src/RendererWorld.cpp
@@ -287,6 +287,8 @@ void RendererWorld::Render(float screenRatio) {
0.1f, 10000000.0f
);
+ globalSpb->Get<GlobalShaderParameters>()->invProj = glm::inverse(projection);
+
auto& view = globalSpb->Get<GlobalShaderParameters>()->view;
view = GetGameState()->GetViewMatrix();