Describe the bug
with hud batching on in immediatelyfast, item decorations are drawn over items even when transparent which means the depth stencil ends up blocking it
To Reproduce
- have an item with the SlotEffect.PULSE decoration
- look at it in the hotbar with ImmediatelyFast hud batching enabled (on by default w/ the mod)
Expected behavior
draws normally
Version information
Spectrum Version: 1.10.5
Minecraft Version: 1.21.1
Mod Loader: Fabric
Screenshots
item draw call with depth test overlay:

depth buffer before item draw call:
depth buffer after item draw call:

(the item sprite are at like depth 0.4725 and the gradient decorations are at like 0.47, u can see it eve naffects the ones that are just borders but it only hides one pixel so its harder 2 notice)
you can see that its happening with any of the items that draw a background gradient (SlotEffect.PULSE in spectrum's code), and i think its because of the depth test, it doesnt rly handle transparency very well. is it rly necessary to have the depth test on for this, it only saves like a few pixels of overdraw doesnt it? and its not on for the inventory
also it doesnt happen in the inventory, only in the hotbar

i think what amkes the difference bt the 2 is that AbstractContainerScreen.render does RenderSystem.disableDepthTest(); while Gui.render does RenderSystem.enableDepthTest(); and it isnt disabled in Gui.renderItemHotbar. idk why it only happens with hud batching tho maybe its like an ordering thing
i also made RaphiMC/ImmediatelyFast#558 since it might be an issue on their end
Describe the bug
with hud batching on in immediatelyfast, item decorations are drawn over items even when transparent which means the depth stencil ends up blocking it
To Reproduce
Expected behavior
draws normally
Version information
Spectrum Version: 1.10.5
Minecraft Version: 1.21.1
Mod Loader: Fabric
Screenshots
item draw call with depth test overlay:

depth buffer before item draw call:
depth buffer after item draw call:

(the item sprite are at like depth 0.4725 and the gradient decorations are at like 0.47, u can see it eve naffects the ones that are just borders but it only hides one pixel so its harder 2 notice)
you can see that its happening with any of the items that draw a background gradient (SlotEffect.PULSE in spectrum's code), and i think its because of the depth test, it doesnt rly handle transparency very well. is it rly necessary to have the depth test on for this, it only saves like a few pixels of overdraw doesnt it? and its not on for the inventory
also it doesnt happen in the inventory, only in the hotbar

i think what amkes the difference bt the 2 is that
AbstractContainerScreen.renderdoesRenderSystem.disableDepthTest();whileGui.renderdoesRenderSystem.enableDepthTest();and it isnt disabled inGui.renderItemHotbar. idk why it only happens with hud batching tho maybe its like an ordering thingi also made RaphiMC/ImmediatelyFast#558 since it might be an issue on their end