mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 20:41:49 +00:00
Block selection visual fix
This commit is contained in:
parent
c30dc594b2
commit
fd679b8320
1 changed files with 1 additions and 1 deletions
|
|
@ -173,7 +173,7 @@ void WorldRenderer::draw(const GfxContext& pctx, Camera* camera, bool occlusion)
|
||||||
const AABB& hitbox = block->hitbox;
|
const AABB& hitbox = block->hitbox;
|
||||||
const vec3 center = pos + hitbox.center();
|
const vec3 center = pos + hitbox.center();
|
||||||
const vec3 size = hitbox.size();
|
const vec3 size = hitbox.size();
|
||||||
lineBatch->box(center, size, vec4(0.0f, 0.0f, 0.0f, 0.5f));
|
lineBatch->box(center, size + vec3(0.02), vec4(0.0f, 0.0f, 0.0f, 0.5f));
|
||||||
lineBatch->render();
|
lineBatch->render();
|
||||||
}
|
}
|
||||||
skybox->unbind();
|
skybox->unbind();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue