All Mods Resource Packs Data Packs Shaders Modpacks Plugins
Longview

Longview

by Ennui • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

Longview

Longview is a mod for Minecraft 26.1 that fixes glitches such as Z-fighting and jaggies on far distances.

This is accomplished through two techniques:

  1. By changing the Z coordinate limits from [-1,1] to [0,1] using the GL_ARB_CLIP_CONTROL extension (officially part of OpenGL 4.5)
  2. By applying the reversed Z technique, where the far plane and the near plane are swapped in the renderer.

This ensures that the depth buffer will be evenly distributed no matter the distance, fixing all sorts of glitches that happens from a distance!

Compatibility

This mod is no longer needed in Minecraft 26.2+ since the game has implemented the same fixes that Longview implements! This mod will continue to work in Minecraft 26.1.

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.3.0, this mod is compatible with Iris Shaders when using shader packs that support it. If the shader pack doesn't support Longview, then this mod will disable itself temporarily, as shown in the F3 debug information.

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.

Acknowledgements

  • This Godot Engine blog post for introducing me to the reverse Z technique.
  • Depth Precision Visualized: an excellent article covering the topic of depth precision as well as the reverse Z technique.
  • The many people who have independently discovered and popularized this technique, including goddamn Quake developers.
  • qendolin for putting together the farz-poc proof-of-concept and for starting discussions involving Mojang developers.
  • IMS for he's a jolly good fellow, which nobody can deny.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
26.1.x
Fabric Neoforge
15h ago 1
26.1.x
Fabric Neoforge
15h ago 1
26.1.x
Fabric Neoforge
15h ago 1
26.1.x
Fabric Neoforge
15h ago 1
26.1.x
Fabric Neoforge
15h ago 1
26.1.x
Fabric Neoforge
15h ago 1
26.1.x
Fabric Neoforge
15h ago 1
26.1.x
Fabric Neoforge
15h ago 1
26.1.x
Fabric Neoforge
15h ago 1
26.1.x
Fabric Neoforge
15h ago 1
26.1.x
Fabric Neoforge
15h ago 1
26.1.x
Fabric Neoforge
15h ago 1
26.1.x
Fabric Neoforge
15h ago 1
[1.3.2] Longview 1.3.2 by Ennui on Oct 15, 2026
Download
## Changelog

  • Fixed the shadow matrices provided by Iris
  • Legacy shadow matrices will remain broken unless there's interest on using them anyway
[1.3.1] Longview 1.3.1 by Ennui on Oct 15, 2026
Download
## Changelog

  • Fixed inverted toggling of Zero-to-One Z after changing Iris's shader pack
[1.3.0] Longview 1.3.0 by Ennui on Oct 15, 2026
Download
## Changelog

  • Added the option for Iris shader packs to explicitly enable Longview
  • This can be done by enabling the longview.enable_reverse_z and longview.enable_z_zero_to_one options in the pack's shaders.properties file
  • Added LONGVIEW_REVERSE_Z and LONGVIEW_Z_ZERO_TO_ONE shader defines so that shader packs can properly implement Longview support
  • Note: there is no universal LONGVIEW define since not all devices running OpenGL support Zero-to-One Z
  • This is the first iteration of a way to allow shader packs to support Reverse Z. There may be issues to be fixed on Longview's side, so don't forget to report anything you see!
  • Reworked the icon in order to make the mod's purpose clearer
  • Fixed an incompatibility with VoxelMap Updated by patching the erroneous logic
  • Added Longview's status in the F3 debug information
[1.2.2] Longview 1.2.2 by Ennui on Oct 15, 2026
Download
## Changelog

  • Fixed compatibility with Distant Horizons 3.1.0+
  • Fixed compatibility issues with Distant Horizons' OpenGL backend
[1.2.1] Longview 1.2.1 by Ennui on Oct 15, 2026
Download
## Changelog

  • Added compatibility with Distant Horizons
  • In order for it to work, make sure that the Blaze3D backend is being used
[1.2.0] Longview 1.2.0 by Ennui on Oct 15, 2026
Download
## Changelog

  • Updated to Minecraft 26.1.2
  • Added the REVERSE_Z and Z_ZERO_TO_ONE shader defines for use with vanilla shaders
  • Fixed the "Improved Transparency" option being broken when Longview turned itself off
  • Restricted Minecraft version compatibility to explicitly only support 26.1.x
  • Minecraft 26.2 will already support Reverse Z by default! No need for Longview there!
[1.1.1] Longview 1.1.1 by Ennui on Oct 15, 2026
Download
## Changelog

  • Fixed Longview crashing Minecraft on systems that don't support glClipControl (like Apple devices)
[1.1.0] Longview 1.1.0 by Ennui on Oct 15, 2026
Download
## Changelog

  • Fixed support for Iris shaders by disabling Longview if a shader pack is detected to be enabled
  • Proper support is planned in the future
[1.0.0] Longview 1.0.0 by Ennui on Oct 15, 2026
Download
## Changelog

  • Updated to Minecraft 26.1
  • Added translations for the mod description
  • Added support for NeoForge update checker
[0.4.0] Longview 0.4.0 by Ennui on Oct 15, 2026
Download
## Changelog

  • Updated to Minecraft 26.1-pre-1
  • Abstracted further the Reverse Z code, ensuring that this mod is renderer-agnostic by default
[0.3.0] Longview 0.3.0 by Ennui on Oct 15, 2026
Download
## Changelog

  • Updated to Minecraft 26.1-snapshot-10
  • Changed more of the reverse-Z code to be generic
  • Compatibility with CinnabarVK remains working
[0.2.0] Longview 0.2.0 by Ennui on Oct 15, 2026
Download
## Changelog

  • Added support to the CinnabarVK backend
  • Added a basic API that enables generic reverse-Z code on custom backends
  • Split the OpenGL and generic code more cleanly, fixing issues with not-supported backends
  • Restructured the codebase to clearly separate the two techniques' code
  • Cleaned up the codebase
[0.1.0] Longview 0.1.0 by Ennui on Oct 15, 2026
Download
## Changelog

  • Initial release
Longview Icon
Download Longview
Select game version
Select platform