Iris Veil Compat
Iris Veil Compat
允许使用 Veil 渲染引擎的模组(如 Create: Aeronautics)在使用 Iris 光影时正确渲染。
原理
Veil 是一个面向 Minecraft 模组的先进渲染 SDK —— 它提供了供其他模组构建的基础着色器基础设施。其主要使用者是 Create: Aeronautics,该模组利用 Veil 来实现飞机机翼、玻璃面板、尾迹及其他视觉效果。
问题在于:当你通过 Iris 启用光影包时,Veil 渲染的视觉效果会完全绕过光影包的管线,导致其显示异常或缺失。
本模组在运行时将 Veil 的着色器代码合并到光影包的 gbuffer 程序中,从而使基于 Veil 的视觉效果(例如 Aeronautics 的飞机)与你的光影包无缝集成。
实现细节
本模组通过 mixins 拦截 Veil 的着色器编译过程,捕获并缓存处理后的着色器源代码。在渲染时,它使用 AST 级补丁技术(由 glsl-transformer 提供支持)将 Veil 着色器逻辑注入到光影包的 gbuffer 顶点/片段程序中,并创建一个 Iris ShaderInstance 来替换原始的 Veil 着色器。
当你切换或重新加载光影包时,缓存会自动失效 —— 无需重启游戏。
兼容性
- Iris 1.8.1+(必需)
- Sodium
- Veil 4.0.0+
- 已在 Create: Aeronautics (Spring, Laser) 和 Sable 上测试通过
致谢
本项目使用 glsl-transformer 进行着色器 AST 操作。
Iris Veil Compat
Iris Veil Compat
Allow mods using the Veil rendering engine (such as Create: Aeronautics) to render correctly when using Iris shaderpacks.
Principle
Veil is an advanced rendering SDK for Minecraft mods — it provides a shader infrastructure that other mods can build on. The most prominent consumer is Create: Aeronautics, which uses Veil for its airplane wings, glass panels, contrails, and other visual effects.
The problem: when you enable a shaderpack via Iris, Veil-rendered visuals bypass the shaderpack's pipeline entirely, causing them to appear broken or missing.
This mod automatically merges Veil shader code into the shaderpack's gbuffer programs at runtime, so Veil-based visuals (like Aeronautics planes) integrate seamlessly with your shaderpack.
Implementation details
This mod intercepts Veil's shader compilation via mixins, capturing and caching the processed shader source. At render time, it injects Veil shader logic into the shaderpack's gbuffer vertex/fragment programs using AST-level patching (powered by glsl-transformer), and creates an Iris ShaderInstance to replace the original Veil shader.
The cache is automatically invalidated when you switch or reload shaderpacks — no restart needed.
Compatibility
- Iris 1.8.1+ (required)
- Sodium
- Veil 4.0.0+
- Tested with Create: Aeronautics (Spring, Laser) and Sable
Credit
This project uses glsl-transformer for shader AST manipulation.
评论 0
登录后参与评分
还没有评论,来抢沙发吧