1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00

Scale culler steps proportionally to the mesh sizes (#13250)

This commit is contained in:
x2048 2023-03-11 14:10:26 +01:00 committed by GitHub
parent 1de8a1e962
commit 705195b43e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 129 additions and 63 deletions

View file

@ -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);