Block selection visual fix

This commit is contained in:
MihailRis 2023-11-29 22:53:50 +03:00
parent c30dc594b2
commit fd679b8320

View File

@ -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();