mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Occlusion: Check for light_propagates and do mapblock bounds checks
This commit is contained in:
parent
7d016b4efd
commit
6ada090bb0
3 changed files with 60 additions and 34 deletions
|
@ -151,6 +151,11 @@ void ClientMap::updateDrawList()
|
|||
occlusion_culling_enabled = false;
|
||||
}
|
||||
|
||||
// Uncomment to debug occluded blocks in the wireframe mode
|
||||
// TODO: Include this as a flag for an extended debugging setting
|
||||
//if (occlusion_culling_enabled && m_control.show_wireframe)
|
||||
// occlusion_culling_enabled = porting::getTimeS() & 1;
|
||||
|
||||
for (const auto §or_it : m_sectors) {
|
||||
MapSector *sector = sector_it.second;
|
||||
v2s16 sp = sector->getPos();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue