todo new voxel format

This commit is contained in:
alexei-zebra 2024-01-05 21:53:45 +03:00
parent eb94127cb6
commit ab1e114947

View file

@ -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;