marking it much faster

This commit is contained in:
Dynamitos
2025-01-25 18:05:47 +01:00
parent 86b6d678f6
commit 463e3d925e
18 changed files with 287 additions and 148 deletions
-6
View File
@@ -28,12 +28,6 @@ std::vector<PModel> ModelLoader::loadModel(std::string_view filename)
model->indices.push_back(face.mIndices[1]);
model->indices.push_back(face.mIndices[2]);
auto e0 = model->positions[face.mIndices[1]] - model->positions[face.mIndices[0]];
auto e1 = model->positions[face.mIndices[2]] - model->positions[face.mIndices[0]];
model->es.push_back(e0);
model->es.push_back(e1);
model->faceNormals.push_back(glm::cross(e0, e1));
}
model->boundingBox = aabb;
result.push_back(std::move(model));