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
6 changed files with 25 additions and 5 deletions

View File

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