diff options
author | lhofhansl <larsh@apache.org> | 2023-02-08 13:42:12 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-08 13:42:12 -0800 |
commit | d3a6ee00e63cc0a4adcaa7598ad5614f1e419515 (patch) | |
tree | ab82ef6f25fe7f314c0065334f7c9c4d56f65426 /src/client/mapblock_mesh.h | |
parent | 56d2567b5dcf9556cef8352032cede48a5610801 (diff) | |
download | minetest-d3a6ee00e63cc0a4adcaa7598ad5614f1e419515.tar.xz |
Generalize mesh chunking, and make it configurable. (#13179)
* Generalize mesh chunking. Set 3x3x3 chunks.
* Make mesh chunk size configurable... Default to 1 (off).
* Extract all mesh grid maths into a dedicated class
---------
Co-authored-by: x2048 <codeforsmile@gmail.com>
Diffstat (limited to 'src/client/mapblock_mesh.h')
-rw-r--r-- | src/client/mapblock_mesh.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/mapblock_mesh.h b/src/client/mapblock_mesh.h index 82e9a0f22..6d5f0dae3 100644 --- a/src/client/mapblock_mesh.h +++ b/src/client/mapblock_mesh.h @@ -43,6 +43,7 @@ struct MeshMakeData v3s16 m_blockpos = v3s16(-1337,-1337,-1337); v3s16 m_crack_pos_relative = v3s16(-1337,-1337,-1337); bool m_smooth_lighting = false; + MeshGrid m_mesh_grid; u16 side_length = MAP_BLOCKSIZE; Client *m_client; @@ -54,7 +55,7 @@ struct MeshMakeData Copy block data manually (to allow optimizations by the caller) */ void fillBlockDataBegin(const v3s16 &blockpos); - void fillBlockData(const v3s16 &block_offset, MapNode *data); + void fillBlockData(const v3s16 &bp, MapNode *data); /* Set the (node) position of a crack |