Reverting normal cone introduction

This commit is contained in:
Dynamitos
2023-12-15 18:33:47 +01:00
parent e233fb9c5b
commit c409a3acd0
8 changed files with 53 additions and 56 deletions
+5 -1
View File
@@ -268,7 +268,11 @@ void MeshLoader::loadGlobalMeshes(const aiScene* scene, const Array<PMaterialIns
Array<Meshlet> meshlets;
meshlets.reserve(indices.size() / (3ull * Gfx::numPrimitivesPerMeshlet));
Meshlet::build(positions, indices, meshlets);
Meshlet::build(indices, meshlets);
for (auto& meshlet : meshlets)
{
meshlet.calcBoundingBox(positions);
}
vertexData->loadMesh(id, indices, meshlets);
collider.physicsMesh.addCollider(positions, indices, Matrix4(1.0f));