mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 21:41:50 +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
|
ctx, camera, *lineBatch, linesShader, showChunkBorders
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (player.currentCamera == player.fpCamera) {
|
|
||||||
renderHands(camera, delta);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
|
@ -500,6 +497,12 @@ void WorldRenderer::draw(
|
||||||
camera,
|
camera,
|
||||||
shadows ? shadowMap->getDepthMap() : 0
|
shadows ? shadowMap->getDepthMap() : 0
|
||||||
);
|
);
|
||||||
|
if (player.currentCamera == player.fpCamera) {
|
||||||
|
DrawContext ctx = pctx.sub();
|
||||||
|
ctx.setDepthTest(true);
|
||||||
|
ctx.setCullFace(true);
|
||||||
|
renderHands(camera, delta);
|
||||||
|
}
|
||||||
renderBlockOverlay(pctx);
|
renderBlockOverlay(pctx);
|
||||||
|
|
||||||
glActiveTexture(GL_TEXTURE0);
|
glActiveTexture(GL_TEXTURE0);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue