Skip to content

Update veil and fix incompatability with Iris#17

Open
luxvent wants to merge 5 commits into
BeeIsYou:mainfrom
luxvent:veil-update
Open

Update veil and fix incompatability with Iris#17
luxvent wants to merge 5 commits into
BeeIsYou:mainfrom
luxvent:veil-update

Conversation

@luxvent

@luxvent luxvent commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

Changes

Veil 4.0.1 introduced compatibility mixin (foundry.veil.forge.mixin.compat.iris.ShaderWrapperMixin)
which redirects every draw made with a Veil shader into an Iris's internal
offscreen framebuffer.
Any Mapwright GUI draw that uses a Veil shader was getting silently
rendered into a buffer that's never displayed.

Fix

  • Added Rendering.inGuiShaderDraw, set for the duration of
    MapScreen#render (covers everything drawn in the menu).
  • Added VeilIrisCompatFix mixin which re-binds main render target
    right after Veil's redirect, but only while the flag is set - so
    genuine in-world Veil+Iris rendering is untouched.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mapwright incompatible with Sodium v8 backport due to outdated Veil instance

1 participant