summaryrefslogtreecommitdiffstats
path: root/src/RendererWorld.cpp
diff options
context:
space:
mode:
authorLaG1924 <lag1924@gmail.com>2021-11-27 15:03:36 +0100
committerLaG1924 <lag1924@gmail.com>2021-11-27 15:03:36 +0100
commit7f3ed11618df0cce5c3d799e0b3f4c009714f2c3 (patch)
tree8827c3ba45b52cdda6524df70ce58c8ca1c55e79 /src/RendererWorld.cpp
parentAdded PostProcess class (diff)
downloadAltCraft-7f3ed11618df0cce5c3d799e0b3f4c009714f2c3.tar
AltCraft-7f3ed11618df0cce5c3d799e0b3f4c009714f2c3.tar.gz
AltCraft-7f3ed11618df0cce5c3d799e0b3f4c009714f2c3.tar.bz2
AltCraft-7f3ed11618df0cce5c3d799e0b3f4c009714f2c3.tar.lz
AltCraft-7f3ed11618df0cce5c3d799e0b3f4c009714f2c3.tar.xz
AltCraft-7f3ed11618df0cce5c3d799e0b3f4c009714f2c3.tar.zst
AltCraft-7f3ed11618df0cce5c3d799e0b3f4c009714f2c3.zip
Diffstat (limited to 'src/RendererWorld.cpp')
-rw-r--r--src/RendererWorld.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/RendererWorld.cpp b/src/RendererWorld.cpp
index d2c69fd..2434ed1 100644
--- a/src/RendererWorld.cpp
+++ b/src/RendererWorld.cpp
@@ -12,6 +12,7 @@
#include "Section.hpp"
#include "RendererSectionData.hpp"
#include "Game.hpp"
+#include "RenderConfigs.hpp"
void RendererWorld::WorkerFunction(size_t workerId) {
OPTICK_THREAD("Worker");
@@ -289,6 +290,8 @@ void RendererWorld::Render(float screenRatio) {
glm::mat4 view = GetGameState()->GetViewMatrix();
glm::mat4 projView = projection * view;
+ Gal::GetImplementation()->GetGlobalShaderParameters()->Get<GlobalShaderParameters>()->projView = projView;
+
//Render Entities
constexpr size_t entitiesVerticesCount = 240;
entitiesPipeline->Activate();