voxel_chunk
Voxel chunk is a very simple module which allows you to create "Chunk" objects.
These chunks are bound by a very simple contraints:
- They are a fixed size.
- They are 16 blocks wide, 16 blocks deep, and 128 blocks tall.
- Blocks are defined as u32 for a LOT of blocks to be defined.
- Height map is precalculated to be 256 long as it's 16x16 and u8.
- Rotation and light are bound by u8, I would have used u4 if it were available.
- Block, light, and rotation are precalculated to be 32768 as they're 16 * 128 * 16 in a 1D array, with methods to extract and inject data.
- They are designed to be as light weight as possible, feel free to suggest any more performance boosting modifications.