diff options
author | x2048 <codeforsmile@gmail.com> | 2023-01-06 22:31:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-06 22:31:06 +0100 |
commit | 2715cc8bf68a2cc8cd583cd5b0bb732ee13a1b49 (patch) | |
tree | cd9c735604cc8ca5c7b6a84cdf5e44058a9d0e11 /src/client/mapblock_mesh.h | |
parent | 059f62d7d60b0aab9af47740f5d5101aa25b7077 (diff) | |
download | minetest-2715cc8bf68a2cc8cd583cd5b0bb732ee13a1b49.tar.xz |
Occlusion culling algorithm based on recursive descend (#13104)
Co-authored-by: DS <vorunbekannt75@web.de>
Diffstat (limited to 'src/client/mapblock_mesh.h')
-rw-r--r-- | src/client/mapblock_mesh.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client/mapblock_mesh.h b/src/client/mapblock_mesh.h index f22dd68bd..7f6185c3a 100644 --- a/src/client/mapblock_mesh.h +++ b/src/client/mapblock_mesh.h @@ -340,3 +340,8 @@ void final_color_blend(video::SColor *result, // TileFrame vector copy cost very much to client void getNodeTileN(MapNode mn, const v3s16 &p, u8 tileindex, MeshMakeData *data, TileSpec &tile); void getNodeTile(MapNode mn, const v3s16 &p, const v3s16 &dir, MeshMakeData *data, TileSpec &tile); + +/// Return bitset of the sides of the mapblock that consist of solid nodes only +/// Bits: +/// 0 0 -Z +Z -X +X -Y +Y +u8 get_solid_sides(MeshMakeData *data); |