Adding AABB to meshlets

This commit is contained in:
Dynamitos committed 2023-12-11 14:45:37 +01:00
1 parent eceb0f6bcc
commit 3feb331927
17 files changed
+63 -51

No files matched your search

+1 -1
View File
@@ -268,7 +268,7 @@ void MeshLoader::loadGlobalMeshes(const aiScene* scene, const Array<PMaterialIns
Array<Meshlet> meshlets;
meshlets.reserve(indices.size() / (3ull * Gfx::numPrimitivesPerMeshlet));
Meshlet::buildFromIndexBuffer(indices, meshlets);
Meshlet::build(positions, indices, meshlets);
vertexData->loadMesh(id, indices, meshlets);
collider.physicsMesh.addCollider(positions, indices, Matrix4(1.0f));