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/Lighting.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/World/Generation/Lighting.hpp (limited to 'src/World/Generation/Lighting.hpp') diff --git a/src/World/Generation/Lighting.hpp b/src/World/Generation/Lighting.hpp new file mode 100644 index 0000000..7bb8fcc --- /dev/null +++ b/src/World/Generation/Lighting.hpp @@ -0,0 +1,13 @@ +#pragma once + +#include "../Chunk.hpp" +#include "ChunkNeighbors.hpp" + +namespace MC::World::Generation::Lighting { + +constexpr U8 LightSun = 200; +constexpr U8 LightTorch = 100; + +void light_chunk(Chunk& chunk, ChunkNeighbors& neighbors); + +} -- cgit 1.4.1