mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix in-hand item render
This commit is contained in:
parent
6927a87973
commit
d030fbc3d5
1 changed files with 6 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue