Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.21] Rendering both darkening background and blur effect in a screen causes it to not render its contents when many HUD layers are present #1504

Open
XFactHD opened this issue Aug 30, 2024 · 0 comments · May be fixed by #1555
Labels
1.21.1 Targeted at Minecraft 1.21.1 bug A bug or error rendering Related to rendering

Comments

@XFactHD
Copy link
Member

XFactHD commented Aug 30, 2024

Minecraft Version: 1.21.1

NeoForge Version: 21.1.31

Steps to Reproduce:

  1. Add a lot of HUD layers (in my test I used over 90, the real-world case in ATM10 ends up at 88 layers)
  2. Add a screen that renders both the darkening background (usually used by container screens) and the blur effect (usually used by out-of-world screens like the pause menu, title screen and settings)
  3. Open the screen while in a world and observe only the blur effect and dark translucent background being rendered

Description of issue:
When enough HUD layers are present and a screen renders both the darkening background (which disables the depth test) and the blur effect in that order, then any contents of the screen such as background texture, items, widgets, etc. vanish. Replacing the darkening background rendering with just RenderSystem.disableDepthTest() produces the same behaviour. Disabling the blur effect in the accessibility settings fixes the issue. It is not yet clear why the different depth causes this to happen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.21.1 Targeted at Minecraft 1.21.1 bug A bug or error rendering Related to rendering
Projects
None yet
1 participant