Please ignore the pre-processor code in the SodiumAccessor. DH supports old MC/Sodium versions, but we don't expect Sodium to deploy these API changes for anything but the newest version of Sodium/MC.
This would also be useful for Weird Wares since we iterate over all currently rendered sections when rendering the terrain_glint render type.
https://github.com/VulpixelMC/weird-wares
Request Description
Distant Horizons currently has two interfaces for Sodium:
HashSet<ChunkPos> getRenderedChunks()
void setFogOcclusion(boolean fogEnabled)
Here is the file where we are currently accessing Sodium: https://gitlab.com/jeseibel/distant-horizons/-/blob/main/fabric/src/main/java/com/seibel/distanthorizons/fabric/wrappers/modAccessor/SodiumAccessor.java
Please ignore the pre-processor code in the SodiumAccessor. DH supports old MC/Sodium versions, but we don't expect Sodium to deploy these API changes for anything but the newest version of Sodium/MC.