summaryrefslogtreecommitdiffstats
path: root/src/RenderConfigs.cpp
diff options
context:
space:
mode:
authorLaG1924 <lag1924@gmail.com>2021-12-11 16:56:17 +0100
committerLaG1924 <lag1924@gmail.com>2021-12-11 16:56:17 +0100
commit5721d60db866373dc5718a8af8e63e5377ffd927 (patch)
tree37959ed252108dcefee9f551950fc178e9433369 /src/RenderConfigs.cpp
parentOptimized GBuffer size (diff)
downloadAltCraft-5721d60db866373dc5718a8af8e63e5377ffd927.tar
AltCraft-5721d60db866373dc5718a8af8e63e5377ffd927.tar.gz
AltCraft-5721d60db866373dc5718a8af8e63e5377ffd927.tar.bz2
AltCraft-5721d60db866373dc5718a8af8e63e5377ffd927.tar.lz
AltCraft-5721d60db866373dc5718a8af8e63e5377ffd927.tar.xz
AltCraft-5721d60db866373dc5718a8af8e63e5377ffd927.tar.zst
AltCraft-5721d60db866373dc5718a8af8e63e5377ffd927.zip
Diffstat (limited to '')
-rw-r--r--src/RenderConfigs.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/RenderConfigs.cpp b/src/RenderConfigs.cpp
index d399818..8cc4ee1 100644
--- a/src/RenderConfigs.cpp
+++ b/src/RenderConfigs.cpp
@@ -183,11 +183,6 @@ Gbuffer::Gbuffer(size_t geomW, size_t geomH, size_t lightW, size_t lightH, int s
normalConf->SetMaxFilter(Gal::Filtering::Bilinear);
normal = gal->BuildTexture(normalConf);
- auto addColorConf = gal->CreateTexture2DConfig(geomW, geomH, Gal::Format::R8G8B8);
- addColorConf->SetMinFilter(Gal::Filtering::Bilinear);
- addColorConf->SetMaxFilter(Gal::Filtering::Bilinear);
- addColor = gal->BuildTexture(addColorConf);
-
auto lightConf = gal->CreateTexture2DConfig(geomW, geomH, Gal::Format::R8G8B8);
lightConf->SetMinFilter(Gal::Filtering::Bilinear);
lightConf->SetMaxFilter(Gal::Filtering::Bilinear);
@@ -202,8 +197,7 @@ Gbuffer::Gbuffer(size_t geomW, size_t geomH, size_t lightW, size_t lightH, int s
geomFbConf->SetDepthStencil(depthStencil);
geomFbConf->SetTexture(0, color);
geomFbConf->SetTexture(1, normal);
- geomFbConf->SetTexture(2, addColor);
- geomFbConf->SetTexture(3, light);
+ geomFbConf->SetTexture(2, light);
geomFramebuffer = gal->BuildFramebuffer(geomFbConf);
geomFramebuffer->SetViewport(0, 0, geomW, geomH);
@@ -274,7 +268,6 @@ Gbuffer::Gbuffer(size_t geomW, size_t geomH, size_t lightW, size_t lightH, int s
{"depthStencil", depthStencil},
{"color", color},
{"normal", normal},
- {"addColor", addColor},
{"light", light},
};