Skip to content

Conversation

@someaddons
Copy link
Contributor

Changes proposed in this pull request

Remove background from text rendering
Allow boxes to render through blocks
image

Testing

  • [x ] Yes I tested this before submitting it.
  • I also did a multiplayer test.

Review please

Allow boxes to render through blocks
matrixStack.scale(-0.014f, -0.014f, 0.014f);

final float backgroundTextOpacity = Minecraft.getInstance().options.getBackgroundOpacity(0.25F);
final float backgroundTextOpacity = 0f;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm kinda against this, one just don't render white text on light background

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the way minecraft renders the background behind the text, just messes up the text. Without it is always better

Copy link
Member

@Nightenom Nightenom Aug 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's bug in forge, and there was a pr upstream to fix it, please do not port to 1.21.
Also without it it's 50% times worse, not sure how you can see white on bright colors, but I don't

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1.21 had the exact same issue

.setShaderState(POSITION_COLOR_SHADER)
.setTransparencyState(TRANSLUCENT_TRANSPARENCY)
.setDepthTestState(LEQUAL_DEPTH_TEST)
.setDepthTestState(AlwaysDepthTestStateShard.ALWAYS_DEPTH_TEST)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might (will) require changes elsewhere, cuz sorting. I kinda don't care whether we render whole or not, but it might be kinda noisy if too many are on screen

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we'll see if it gets too noise with multiple schematics, though the tag tool rendering does require it to be able to see tagged blocks behind walls

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The single block highlights need adjusting, Mirality already had some decent ideas in mcol

@Raycoms Raycoms merged commit bbba7a9 into version/main Aug 3, 2025
5 checks passed
@Raycoms Raycoms deleted the highlightrendering branch August 3, 2025 15:16
@someaddons someaddons mentioned this pull request Aug 4, 2025
1 task
someaddons added a commit that referenced this pull request Aug 4, 2025
Nightenom added a commit that referenced this pull request Aug 14, 2025
Nightenom added a commit that referenced this pull request Aug 14, 2025
This reverts commit 1837aac.
Nightenom added a commit that referenced this pull request Aug 14, 2025
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.

4 participants