mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
add 'core:pathfinding' component
This commit is contained in:
parent
e2d0fa830d
commit
a110022ec2
3 changed files with 45 additions and 3 deletions
|
|
@ -380,9 +380,11 @@ void WorldRenderer::renderFrame(
|
|||
|
||||
auto& linesShader = assets.require<Shader>("lines");
|
||||
linesShader.use();
|
||||
debugLines->render(
|
||||
ctx, camera, *lines, *lineBatch, linesShader, showChunkBorders
|
||||
);
|
||||
if (debug && hudVisible) {
|
||||
debugLines->render(
|
||||
ctx, camera, *lines, *lineBatch, linesShader, showChunkBorders
|
||||
);
|
||||
}
|
||||
linesShader.uniformMatrix("u_projview", projView);
|
||||
lines->draw(*lineBatch);
|
||||
lineBatch->flush();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue