diff options
author | LaG1924 <lag1924@gmail.com> | 2021-11-27 15:03:36 +0100 |
---|---|---|
committer | LaG1924 <lag1924@gmail.com> | 2021-11-27 15:03:36 +0100 |
commit | 7f3ed11618df0cce5c3d799e0b3f4c009714f2c3 (patch) | |
tree | 8827c3ba45b52cdda6524df70ce58c8ca1c55e79 /src/RendererWorld.cpp | |
parent | Added PostProcess class (diff) | |
download | AltCraft-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.cpp | 3 |
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(); |