From 23d88e5f1c8f0c8652a07050fcfa8ff126e85d4a Mon Sep 17 00:00:00 2001 From: Mel Date: Fri, 21 Jul 2023 02:17:03 +0200 Subject: Extremely simple chunk-limited lighting --- src/World/Generation/ChunkNeighbors.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/World/Generation/ChunkNeighbors.hpp (limited to 'src/World/Generation/ChunkNeighbors.hpp') diff --git a/src/World/Generation/ChunkNeighbors.hpp b/src/World/Generation/ChunkNeighbors.hpp new file mode 100644 index 0000000..1207c60 --- /dev/null +++ b/src/World/Generation/ChunkNeighbors.hpp @@ -0,0 +1,13 @@ +#pragma once + +#include "../Chunk.hpp" + +namespace MC::World::Generation { +struct ChunkNeighbors { + Chunk *north, *east, *south, *west; + Chunk *north_east, *south_east, *south_west, *north_west; +}; + +Chunk::BlockData get_block_wrapping(const Chunk& chunk, const ChunkNeighbors& neighbors, Vector<3, I32> pos); + +} \ No newline at end of file -- cgit 1.4.1