summaryrefslogtreecommitdiffstats
path: root/src/RenderConfigs.cpp
diff options
context:
space:
mode:
authorLaG1924 <lag1924@gmail.com>2021-12-18 06:59:06 +0100
committerLaG1924 <lag1924@gmail.com>2021-12-18 06:59:06 +0100
commit3dc7e8aba4a07cc3c0d897b82af5a5951bde9991 (patch)
tree7361aa7f00026b2cd6749e73bbe2bfc4b10ebd69 /src/RenderConfigs.cpp
parentFixed SSAO low occlusion factor (diff)
downloadAltCraft-3dc7e8aba4a07cc3c0d897b82af5a5951bde9991.tar
AltCraft-3dc7e8aba4a07cc3c0d897b82af5a5951bde9991.tar.gz
AltCraft-3dc7e8aba4a07cc3c0d897b82af5a5951bde9991.tar.bz2
AltCraft-3dc7e8aba4a07cc3c0d897b82af5a5951bde9991.tar.lz
AltCraft-3dc7e8aba4a07cc3c0d897b82af5a5951bde9991.tar.xz
AltCraft-3dc7e8aba4a07cc3c0d897b82af5a5951bde9991.tar.zst
AltCraft-3dc7e8aba4a07cc3c0d897b82af5a5951bde9991.zip
Diffstat (limited to 'src/RenderConfigs.cpp')
-rw-r--r--src/RenderConfigs.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/RenderConfigs.cpp b/src/RenderConfigs.cpp
index 43342bb..78b442d 100644
--- a/src/RenderConfigs.cpp
+++ b/src/RenderConfigs.cpp
@@ -183,7 +183,7 @@ 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 lightConf = gal->CreateTexture2DConfig(geomW, geomH, Gal::Format::R8G8);
+ auto lightConf = gal->CreateTexture2DConfig(geomW, geomH, Gal::Format::R8G8B8);
lightConf->SetMinFilter(Gal::Filtering::Bilinear);
lightConf->SetMaxFilter(Gal::Filtering::Bilinear);
light = gal->BuildTexture(lightConf);
@@ -221,6 +221,7 @@ Gbuffer::Gbuffer(size_t geomW, size_t geomH, size_t lightW, size_t lightH, int s
std::vector<std::pair<std::string_view, std::shared_ptr<Gal::Texture>>> ssaoTextures = {
{"normal", normal},
+ {"light", light},
{"depthStencil", depthStencil},
{"ssaoNoise", ssaoNoise},
};