summaryrefslogtreecommitdiffstats
path: root/src/RendererWorld.cpp
diff options
context:
space:
mode:
authorLaG1924 <lag1924@gmail.com>2021-12-19 13:00:13 +0100
committerLaG1924 <lag1924@gmail.com>2021-12-19 13:00:13 +0100
commitbac80e3514f93055daa4e743fa4f8ba177f77311 (patch)
tree1defef5e53fa99d4e5fdd2fc32cfb8bc7128c18c /src/RendererWorld.cpp
parentAdded AO mask (diff)
downloadAltCraft-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.cpp9
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);
}