>>106469178
I did it. Here's my progress
vector<BVH::Insertion<Mesh<ModelVertex>>> insertionNodes;
for (auto const& model : worldGeometry)
{
for (auto const& mesh : model.m_mesh)
{
insertionNodes.push_back(make_pair(mesh.m_boundingBox, mesh.m_mesh.get()));
}
}
auto tree = BVH::BuildTree(insertionNodes.data(), insertionNodes.size());
Comment too long. Click here to view the full text.