mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-07-04 22:59:07 +02:00
Handle lighting and depth
This commit is contained in:
parent
d26fe3d9f8
commit
8b09f6f4ec
7 changed files with 220 additions and 72 deletions
|
@ -35,6 +35,15 @@ namespace World {
|
|||
struct Block {
|
||||
uint8_t id;
|
||||
uint8_t data;
|
||||
|
||||
unsigned height;
|
||||
|
||||
uint8_t blockLight;
|
||||
uint8_t skyLight;
|
||||
|
||||
Block() : id(0), data(0), height(0), blockLight(0), skyLight(0) {}
|
||||
|
||||
uint32_t getColor() const;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue