!Longview
!A comparison between having Longview installed and not having it installed. The cold pig is visibly jagged on the "Longview Off" shot and Z-fighting is visible on the waterlogged leaves. The "Longview On" shot shows the exact same scene but without the jaggies and with waterlogged leaves working as intended.
Longview is a mod that fixes glitches such as Z-fighting and jaggies on far distances.
This is accomplished through two techniques:
GL_ARB_CLIP_CONTROL extension (officially part of OpenGL 4.5)This ensures that the depth buffer will be evenly distributed no matter the distance, fixing all sorts of glitches that happens from a distance!
This mod requires a device supporting either the GL_ARB_CLIP_CONTROL extension or OpenGL 4.5 in order to apply Technique 1.
On devices that don't support either, like ones running macOS, Technique 2 will still be applied, although since the Z coordinate limits will remain as [-1,1], flipping them will do nothing at all considering said limit is effectively symmetric.
As of Longview 1.1.0, this mod is semi-compatible with Iris Shaders and it will disable itself if a shader pack is active. Proper compatibility will be worked on in the future.
This mod is fully compatible with custom graphics backends and will implement Technique 2 by default, although said custom backends are required to implement Technique 1 themselves.