fix in-hand item render

This commit is contained in:
MihailRis 2025-06-10 20:29:32 +03:00
parent 6927a87973
commit d030fbc3d5

View File

@ -482,9 +482,6 @@ void WorldRenderer::draw(
ctx, camera, *lineBatch, linesShader, showChunkBorders
);
}
if (player.currentCamera == player.fpCamera) {
renderHands(camera, delta);
}
}
}
{
@ -500,6 +497,12 @@ void WorldRenderer::draw(
camera,
shadows ? shadowMap->getDepthMap() : 0
);
if (player.currentCamera == player.fpCamera) {
DrawContext ctx = pctx.sub();
ctx.setDepthTest(true);
ctx.setCullFace(true);
renderHands(camera, delta);
}
renderBlockOverlay(pctx);
glActiveTexture(GL_TEXTURE0);