From 20c53c7473fc6cc08944f502f078dfe57bcae1c9 Mon Sep 17 00:00:00 2001 From: Mel Date: Fri, 21 Oct 2022 17:46:35 +0200 Subject: Broken infinite world --- src/World/Chunk.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/World/Chunk.cpp') diff --git a/src/World/Chunk.cpp b/src/World/Chunk.cpp index 0d86ddb..d02e5e5 100644 --- a/src/World/Chunk.cpp +++ b/src/World/Chunk.cpp @@ -45,6 +45,10 @@ GFX::Mesh Chunk::mesh() { return {positions, tex_coords, indices}; } +Vector<3> Chunk::position() { + return m_position; +} + bool Chunk::is_face_visible(uint32_t x, uint32_t y, uint32_t z, BlockSide side) { Vector<3, int32_t> offset{}; switch (side) { -- cgit 1.4.1