diff options
author | LaG1924 <lag1924@gmail.com> | 2021-11-21 10:57:57 +0100 |
---|---|---|
committer | LaG1924 <lag1924@gmail.com> | 2021-11-21 10:57:57 +0100 |
commit | f16c897522b6418c399b5699f8378a25c2e5de4f (patch) | |
tree | 9fd1490645de30330b6ae84eebd1fe961c3f1e52 /src/RendererWorld.cpp | |
parent | Added Gbuffer (diff) | |
download | AltCraft-f16c897522b6418c399b5699f8378a25c2e5de4f.tar AltCraft-f16c897522b6418c399b5699f8378a25c2e5de4f.tar.gz AltCraft-f16c897522b6418c399b5699f8378a25c2e5de4f.tar.bz2 AltCraft-f16c897522b6418c399b5699f8378a25c2e5de4f.tar.lz AltCraft-f16c897522b6418c399b5699f8378a25c2e5de4f.tar.xz AltCraft-f16c897522b6418c399b5699f8378a25c2e5de4f.tar.zst AltCraft-f16c897522b6418c399b5699f8378a25c2e5de4f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/RendererWorld.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/RendererWorld.cpp b/src/RendererWorld.cpp index 561578f..9055729 100644 --- a/src/RendererWorld.cpp +++ b/src/RendererWorld.cpp @@ -449,12 +449,13 @@ void RendererWorld::PrepareRender(std::shared_ptr<Gal::Framebuffer> target) { sectionsPLC->SetPrimitive(Gal::Primitive::TriangleFan); sectionsBufferBinding = sectionsPLC->BindVertexBuffer({ {"position", Gal::Type::Vec3, 4, 1}, + {"normal", Gal::Type::Vec3, 1, 1}, {"uv", Gal::Type::Vec2, 4, 1}, {"uvLayer", Gal::Type::Float, 1, 1}, {"animation", Gal::Type::Float, 1, 1}, {"color", Gal::Type::Vec3, 1, 1}, {"light", Gal::Type::Vec2, 1, 1}, - {"", Gal::Type::Uint8, 20, 1} + {"", Gal::Type::Uint8, 8, 1} }); sectionsPipeline = gal->BuildPipeline(sectionsPLC); sectionsPipeline->SetShaderParameter("MinLightLevel", 0.2f); |