mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 05:51:51 +00:00
Voxel changed from 16 bit to 32 bit + new lua functions
This commit is contained in:
parent
460b08a006
commit
06f66ffd71
10 changed files with 229 additions and 36 deletions
|
|
@ -11,6 +11,9 @@ const int CHUNK_W = 16;
|
|||
const int CHUNK_H = 256;
|
||||
const int CHUNK_D = 16;
|
||||
|
||||
const uint VOXEL_USER_BITS = 8;
|
||||
constexpr uint VOXEL_USER_BITS_OFFSET = sizeof(blockstate_t)*8-VOXEL_USER_BITS;
|
||||
|
||||
/* Chunk volume (count of voxels per Chunk) */
|
||||
constexpr int CHUNK_VOL = (CHUNK_W * CHUNK_H * CHUNK_D);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue