mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 21:11:50 +00:00
initial microrefactor
This commit is contained in:
parent
9af18717f8
commit
727d46de5e
8 changed files with 395 additions and 397 deletions
|
|
@ -32,7 +32,7 @@ inline constexpr itemid_t ITEM_VOID = std::numeric_limits<itemid_t>::max();
|
|||
inline constexpr blockid_t MAX_BLOCKS = BLOCK_VOID;
|
||||
|
||||
inline constexpr uint vox_index(uint x, uint y, uint z, uint w=CHUNK_W, uint d=CHUNK_D) {
|
||||
return (y * d + z) * w + x;
|
||||
return (y * d + z) * w + x;
|
||||
}
|
||||
|
||||
inline const std::string SHADERS_FOLDER = "shaders";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue