mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
todo new voxel format
This commit is contained in:
parent
eb94127cb6
commit
ab1e114947
1 changed files with 16 additions and 1 deletions
|
|
@ -27,14 +27,29 @@ const u_int32 BLOCK_VALUE_OFFSET = 0x8;
|
|||
const u_int32 BLOCK_STATE_MASK = 0b1111;
|
||||
const u_int32 BLOCK_STATE_OFFSET = 0xC;
|
||||
|
||||
|
||||
//* VOXEL BIT MAP |
|
||||
//*-----------------------------------------------------------------------|
|
||||
//* 16 19 20 24 28 32 |
|
||||
//* 0 16 19 20 24 28 32 |
|
||||
//* | | | / | | | |
|
||||
//* |* * * * * * * * * * * * * * * *|* * *|*|* * * *|* * * *|*'*'*'*| |
|
||||
//* id dir / \ variant value 4states |
|
||||
//* |sig| |
|
||||
//*-----------------------------------------------------------------------|
|
||||
|
||||
|
||||
|
||||
//TODO NEW VOXEL BIT MAP |
|
||||
//*-------------------------------------------------------------------------------------------------------|
|
||||
//* 0 16 24 28 29 32 40 48 |
|
||||
//* | | | | / | 8 bool states | value | |
|
||||
//* |# # # # # # # # # # # # # # # #'# # # # # # # #|# # # #|#|# # #|#`#`#`#`#`#`#`#'# # # # # # # #| |
|
||||
//* id sub id variant/ \ dir dynamic bits states |
|
||||
//* |sig| |
|
||||
//*-------------------------------------------------------------------------------------------------------|
|
||||
|
||||
|
||||
|
||||
struct voxel {
|
||||
blockid_t id;
|
||||
u_short16 states;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue