1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16:38:41 +00:00

Allow cheaper culling checks at a distance (#14073)

* Allow cheaper culling checks at a distance
* Pick a random ray, so that far missing block will eventually be shown
This commit is contained in:
lhofhansl 2023-12-16 15:04:21 -08:00 committed by GitHub
parent 16c22477c2
commit ca1a723890
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 25 additions and 5 deletions

View file

@ -305,7 +305,7 @@ public:
}
}
bool isBlockOccluded(MapBlock *block, v3s16 cam_pos_nodes);
bool isBlockOccluded(MapBlock *block, v3s16 cam_pos_nodes, bool simple_check = false);
protected:
IGameDef *m_gamedef;