mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
add "Show Hitboxes" to the debug panel
This commit is contained in:
parent
9efb327270
commit
5522cfc231
3 changed files with 16 additions and 1 deletions
|
|
@ -44,6 +44,7 @@
|
|||
#include <glm/gtc/matrix_transform.hpp>
|
||||
|
||||
bool WorldRenderer::showChunkBorders = false;
|
||||
bool WorldRenderer::showEntitiesDebug = false;
|
||||
|
||||
WorldRenderer::WorldRenderer(Engine* engine, LevelFrontend* frontend, Player* player)
|
||||
: engine(engine),
|
||||
|
|
@ -232,7 +233,7 @@ void WorldRenderer::renderLines(Camera* camera, Shader* linesShader) {
|
|||
if (player->selection.vox.id != BLOCK_VOID) {
|
||||
renderBlockSelection();
|
||||
}
|
||||
if (player->debug) {
|
||||
if (player->debug && showEntitiesDebug) {
|
||||
level->entities->renderDebug(*lineBatch, *frustumCulling);
|
||||
}
|
||||
lineBatch->render();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue