properly credit occlusion culling

This commit is contained in:
Bixilon 2022-05-10 00:31:20 +02:00
parent 38d84cdc26
commit a37240668c
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -36,6 +36,13 @@ import de.bixilon.minosoft.util.logging.LogLevels
import de.bixilon.minosoft.util.logging.LogMessageType
import it.unimi.dsi.fastutil.ints.IntOpenHashSet
/**
* Handles visibility of objects
*
* Credit for occlusion culling:
* - https://github.com/stackotter/delta-client (with big thanks to @stackotter for ideas and explanation!)
* - https://tomcc.github.io/2014/08/31/visibility-1.html
*/
class WorldVisibilityGraph(
private val renderWindow: RenderWindow,
camera: Camera,