diff options
| author | Mel <einebeere@gmail.com> | 2023-07-21 02:17:03 +0200 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2023-07-21 02:17:03 +0200 |
| commit | 23d88e5f1c8f0c8652a07050fcfa8ff126e85d4a (patch) | |
| tree | d2979c12a9675885b7ed969d5f51dbd69d969286 /src/World/Generation/Lighting.hpp | |
| parent | c0556f76fc5c8271c2eaa7ca91ad1c92c691d8bc (diff) | |
| download | meowcraft-23d88e5f1c8f0c8652a07050fcfa8ff126e85d4a.tar.zst meowcraft-23d88e5f1c8f0c8652a07050fcfa8ff126e85d4a.zip | |
Extremely simple chunk-limited lighting
Diffstat (limited to 'src/World/Generation/Lighting.hpp')
| -rw-r--r-- | src/World/Generation/Lighting.hpp | 13 |
1 files changed, 13 insertions, 0 deletions
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); + +} |
