Create new HUD Item #1611
-
I'm trying to draw an image on screen, as a new HUD item. I've tried this:
But it seems to draw it with transparency, so how do I draw it without transparency? The image drawn on screen: The image it's supposed to draw: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Are you using the fabric event?
I believe the rendering system is supposed to be pretty much in the default state when it is called? Anyway, try something like:
But you might break some other rendering if you do this at a "random" point in the hud rendering code. You can also look at Minecraft's RenderPhase and RenderLayer classes to see some common use cases of the RenderSystem. |
Beta Was this translation helpful? Give feedback.
Are you using the fabric event?
I believe the rendering system is supposed to be pretty much in the default state when it is called?
Anyway, try something like:
But you might break some other rendering if you do this at a "random" point in the hud rendering code.
You can also look at Minecraft's RenderPhase and RenderLayer classes to see some common use cases of the RenderSystem.