We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4f7ce1 commit 24edfb7Copy full SHA for 24edfb7
src/clientmap.cpp
@@ -301,7 +301,10 @@ void ClientMap::updateDrawList(video::IVideoDriver* driver)
301
float endoff = -BS * MAP_BLOCKSIZE * 1.732050807569;
302
v3s16 spn = cam_pos_nodes;
303
s16 bs2 = MAP_BLOCKSIZE / 2 + 1;
304
- u32 needed_count = 1;
+ // to reduce the likelihood of falsely occluded blocks
305
+ // require at least two solid blocks
306
+ // this is a HACK, we should think of a more precise algorithm
307
+ u32 needed_count = 2;
308
if (occlusion_culling_enabled &&
309
// For the central point of the mapblock 'endoff' can be halved
310
isOccluded(this, spn, cpn,
0 commit comments