Parallel scene intersections (#563)

- scene intersections using multithreading
- scene intersections can specify LOD level
This commit is contained in:
Turánszki János
2022-09-10 15:24:01 +02:00
committed by GitHub
parent 93f7d421c8
commit bcffb27ead
15 changed files with 450 additions and 342 deletions
@@ -770,7 +770,7 @@ void Example_ImGuiRenderer::Update(float dt)
if (!boundSizing)
{
//PE: This only diplay the bounding box.
const wi::primitive::AABB& aabb = *scene.aabb_objects.GetComponent(highlight_entity);
const wi::primitive::AABB& aabb = scene.aabb_objects[scene.objects.GetIndex(highlight_entity)];
XMFLOAT4X4 hoverBox;
XMStoreFloat4x4(&hoverBox, aabb.getAsBoxMatrix());
wi::renderer::DrawBox(hoverBox, XMFLOAT4(1.0f, 0.9f, 0.5f, 0.4f));