diff options
author | x2048 <codeforsmile@gmail.com> | 2023-03-11 14:10:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-11 14:10:26 +0100 |
commit | 705195b43e620d305bf83b3796699faadb2314ef (patch) | |
tree | 4df8a624217f329cb77a5a42e79d63b820e99e43 /src/client/mapblock_mesh.h | |
parent | 1de8a1e962098b94154111c7aafe18c4aab74fc9 (diff) | |
download | minetest-705195b43e620d305bf83b3796699faadb2314ef.tar.xz |
Scale culler steps proportionally to the mesh sizes (#13250)
Diffstat (limited to 'src/client/mapblock_mesh.h')
-rw-r--r-- | src/client/mapblock_mesh.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/client/mapblock_mesh.h b/src/client/mapblock_mesh.h index 288f5cae7..64433673b 100644 --- a/src/client/mapblock_mesh.h +++ b/src/client/mapblock_mesh.h @@ -247,8 +247,7 @@ private: IShaderSource *m_shdrsrc; f32 m_bounding_radius; - // MapblockMeshGenerator uses the same as mapblock center - v3f m_bounding_sphere_center = v3f((MAP_BLOCKSIZE * 0.5f - 0.5f) * BS); + v3f m_bounding_sphere_center; bool m_enable_shaders; bool m_enable_vbo; @@ -338,7 +337,7 @@ void final_color_blend(video::SColor *result, 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 +/// Return bitset of the sides of the mesh that consist of solid nodes only /// Bits: /// 0 0 -Z +Z -X +X -Y +Y -std::unordered_map<v3s16, u8> get_solid_sides(MeshMakeData *data); +u8 get_solid_sides(MeshMakeData *data); |