Block selection visual fix
This commit is contained in:
parent
c30dc594b2
commit
fd679b8320
@ -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…
x
Reference in New Issue
Block a user