diff options
author | LaG1924 <lag1924@gmail.com> | 2021-12-19 13:00:13 +0100 |
---|---|---|
committer | LaG1924 <lag1924@gmail.com> | 2021-12-19 13:00:13 +0100 |
commit | bac80e3514f93055daa4e743fa4f8ba177f77311 (patch) | |
tree | 1defef5e53fa99d4e5fdd2fc32cfb8bc7128c18c /src/RendererWorld.cpp | |
parent | Added AO mask (diff) | |
download | AltCraft-bac80e3514f93055daa4e743fa4f8ba177f77311.tar AltCraft-bac80e3514f93055daa4e743fa4f8ba177f77311.tar.gz AltCraft-bac80e3514f93055daa4e743fa4f8ba177f77311.tar.bz2 AltCraft-bac80e3514f93055daa4e743fa4f8ba177f77311.tar.lz AltCraft-bac80e3514f93055daa4e743fa4f8ba177f77311.tar.xz AltCraft-bac80e3514f93055daa4e743fa4f8ba177f77311.tar.zst AltCraft-bac80e3514f93055daa4e743fa4f8ba177f77311.zip |
Diffstat (limited to '')
-rw-r--r-- | src/RendererWorld.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/RendererWorld.cpp b/src/RendererWorld.cpp index 2ffb57f..21f0db2 100644 --- a/src/RendererWorld.cpp +++ b/src/RendererWorld.cpp @@ -457,14 +457,11 @@ void RendererWorld::PrepareRender(std::shared_ptr<Gal::Framebuffer> target, bool sectionsPLC->SetPrimitive(Gal::Primitive::TriangleFan); sectionsBufferBinding = sectionsPLC->BindVertexBuffer({ {"pos", 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}, + {"light", Gal::Type::Vec2, 4, 1}, + {"normal", Gal::Type::Vec3, 1, 1}, {"color", Gal::Type::Vec3, 1, 1}, - {"light", Gal::Type::Vec2, 1, 1}, - {"ambientOcclusion", Gal::Type::Float, 1, 1}, - {"", Gal::Type::Uint8, 4, 1} + {"layerAnimationAo", Gal::Type::Vec3, 1, 1}, }); sectionsPipeline = gal->BuildPipeline(sectionsPLC); } |