1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16: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

@ -143,6 +143,7 @@ public:
protected:
void reportMetrics(u64 save_time_us, u32 saved_blocks, u32 all_blocks) override;
private:
bool isMeshOccluded(MapBlock *mesh_block, u16 mesh_size, v3s16 cam_pos_nodes);
// update the vertex order in transparent mesh buffers
void updateTransparentMeshBuffers();