forked from Dynamitos/Seele
Reverting normal cone introduction
This commit is contained in:
1 parent
e233fb9c5b
commit
c409a3acd0
8 files changed
+53
-56
No files matched your search
@@ -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));
|
||||
|
||||
Reference in new issue
Block a user