diff --git a/src/voxels/voxel.h b/src/voxels/voxel.h index aadedbd2b..efb9fb9c5 100644 --- a/src/voxels/voxel.h +++ b/src/voxels/voxel.h @@ -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;