Skip to content
Snippets Groups Projects
Commit a752dab7 authored by jwendt's avatar jwendt
Browse files

Correct wireframe rendering of bounding box

parent b2fa88bb
No related branches found
No related tags found
1 merge request!145Feature/#484 fix combustion demo error
......@@ -103,11 +103,12 @@ int main(int, char**) {
"models/combustion/data_box.stl", scene.get());
auto boundingbox_transform =
model_boundingbox->GetFirstComponent<phx::Transform>();
auto boundingbox_mesh_handle = boundingbox_transform->GetChild(0)
->GetEntity()
->GetFirstComponent<phx::MeshHandle>();
auto boundigbox_mesh_entity =
boundingbox_transform->GetChild(0)->GetEntity();
auto boundingbox_mesh_handle =
boundigbox_mesh_entity->GetFirstComponent<phx::MeshHandle>();
auto render_settings =
model_boundingbox->AddComponent<phx::MeshRenderSettings>();
boundigbox_mesh_entity->AddComponent<phx::MeshRenderSettings>();
render_settings->SetWireframeMode(true);
std::array<glm::vec3, 2> bbox =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment