From be808181b2c84358b232e4a32d1a6dd9dd6659ed Mon Sep 17 00:00:00 2001 From: LaG1924 Date: Sat, 11 Dec 2021 20:44:40 +0500 Subject: Optimized GBuffer size --- src/RenderConfigs.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/RenderConfigs.hpp') diff --git a/src/RenderConfigs.hpp b/src/RenderConfigs.hpp index 8ca5a9e..92ce90c 100644 --- a/src/RenderConfigs.hpp +++ b/src/RenderConfigs.hpp @@ -5,6 +5,7 @@ struct GlobalShaderParameters { glm::mat4 projView; glm::mat4 proj; + glm::mat4 invProj; glm::mat4 view; glm::uvec2 viewportSize; glm::uint32 paddingFA = 0xFAAFFAFA; @@ -95,7 +96,6 @@ class Gbuffer { std::shared_ptr depthStencil; std::shared_ptr color; //RGB - color std::shared_ptr normal; //RGB - normal - std::shared_ptr worldPos; //RGB - viewSpaceWorldPos std::shared_ptr addColor; //RGB - addColor std::shared_ptr light; //R - faceLight, G - skyLight, B - unused std::shared_ptr geomFramebuffer; -- cgit v1.2.3