跳到正文

Voxy Iris Reverse-Z Fix

作者:realdody

Fixes an incompatibility between Voxy and Iris 1.11.4+

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

A small client-side compatibility patch for Voxy when used with Iris 1.11.4+ and a shaderpack (e.g. Photon).

Fixes sky textures clipping through distant LOD terrain and broken lighting when using Iris shaders with Voxy

image

What it fixes

Iris 1.11.4 replaced its old "switch the world to forward-z while shaders are active" with a
depth transformer: the world now stays in the native reverse-z layout and pack shaders get
translated (depth reads/writes inverted, gbufferProjection undo-rev-z’d, …).

image

Voxy versions built before that change still force forward-z whenever a shader pack is active, so:

  • Voxy’s own depth buffers/projection disagree with the framebuffer Iris renders into.
  • vxDepthTexOpaque and vxDepthTexTrans contain forward-z values while Iris inverts them before
    the pack sees them, so pack code such as Photon’s is_lod_terrain() classifies sky pixels as
    LOD terrain. The result is broken/duplicated sky textures and broken LOD shading.
  • Voxy’s injected shader patches (voxy_opaque.glsl and voxy_translucent.glsl) read
    depthtex1 / vxDepthTex* / gl_FragCoord with nobody transforming them.

This mod makes Voxy advertise the native reverse-z state, hands the pack undo-rev-z’d
vxProj/vxViewProj matrices and runs the injected patch glsl through Iris’ own
TransformPatcher.patchDepth().

Requirements

  • Minecraft 26.2, Fabric loader
  • Voxy 0.2.17-alpha or newer (all 26.2 builds; verified
    against 0.2.19-beta and the dev branch)
  • Iris 1.11.4 or newer
  • Any shader pack that uses Voxy’s shader integration for the full fix

常见问题

Voxy Iris Reverse-Z Fix 支持哪些 Minecraft 版本?

Voxy Iris Reverse-Z Fix 支持 Minecraft Java 版 26.2,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Voxy Iris Reverse-Z Fix 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分