Fixed stained glass and glass pane not rendering the water and held item transparency for stained glass and pane (#748)

* fixed stained glass and glass pane not rendering the water

* Fixed held item transparency for stained glass and pane
This commit is contained in:
Marvelco
2026-03-06 23:35:30 +02:00
committed by GitHub
parent d265ce29a2
commit a4214805d1
4 changed files with 14 additions and 2 deletions

View File

@@ -745,7 +745,12 @@ void GameRenderer::renderItemInHand(float a, int eye)
{
turnOnLightLayer(a);
PIXBeginNamedEvent(0,"Item in hand render");
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glDepthMask(false);
itemInHandRenderer->render(a);
glDepthMask(true);
glDisable(GL_BLEND);
PIXEndNamedEvent();
turnOffLightLayer(a);
}