API Requests for Distant Horizons
jeseibel opened this issue ยท 2 comments
Request Description
Distant Horizons currently has two interfaces for Sodium:
HashSet<ChunkPos> getRenderedChunks()
- This returns the set of chunk positions that are currently being rendered by sodium
void setFogOcclusion(boolean fogEnabled)
- Due to DH disabling fog on vanilla chunks, occluding said chunks is unnecessary.
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.
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