Skip to content

fix render bugs in xray and wallhack modules when using Indigo renderer (FAPI)#6393

Merged
Big-Iron-Cheems merged 2 commits into
MeteorDevelopment:masterfrom
xvrrv:indigo
May 10, 2026
Merged

fix render bugs in xray and wallhack modules when using Indigo renderer (FAPI)#6393
Big-Iron-Cheems merged 2 commits into
MeteorDevelopment:masterfrom
xvrrv:indigo

Conversation

@xvrrv
Copy link
Copy Markdown
Contributor

@xvrrv xvrrv commented May 10, 2026

Type of change

  • Bug fix

  • New feature

Description

when using Indigo renderer from fabric api (fapi) transparency was not working on both modules because AltModelBlockRendererImplMixin.transform$xray() never changes the chunk layer to TRANSLUCENT when alpha is not 0 and 255

fix its just add call inside the else if to

quad.chunkLayer(ChunkSectionLayer.TRANSLUCENT); 

checking when alpha > 0 && alpha < 255

and import of course

import net.minecraft.client.renderer.chunk.ChunkSectionLayer;

also there was a bug in xray where only ores hidden faces were rendering (opposite behavior)

this is because

  • ModelBlockRenderer.shouldRenderFace returns true to show exposed faces

  • AltModelBlockRendererImpl.shouldCullFace returns true to hide exposed faces

as you can see logic is reversed

the fix is just invert original so modifyDrawSide returns true and then invert again that return so it converts to false preventing shouldCullFace working while xray is active

Related issues

#6389

How Has This Been Tested?

singleplayer and multiplayer

turning on xray and later wallhack

opacity set to different values, works fine

2026-05-10_07 17 05

Checklist:

  • My code follows the style guidelines of this project.

  • I have added comments to my code in more complex areas. (no needed)

  • I have tested the code in both development and production environments.

xvrrv and others added 2 commits May 10, 2026 09:34
@Big-Iron-Cheems Big-Iron-Cheems merged commit d5464c8 into MeteorDevelopment:master May 10, 2026
1 check passed
@xvrrv xvrrv deleted the indigo branch May 10, 2026 15:57
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.

2 participants