Model is loaded and added, started to implement ray generation

This commit is contained in:
Gamemaker1998
2025-01-24 23:21:14 +01:00
parent 8af00e2510
commit 8317ccaaba
5 changed files with 37 additions and 15 deletions
+2 -2
View File
@@ -28,8 +28,8 @@ 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] - face.mIndices[0]];
auto e1 = model->positions[face.mIndices[2] - face.mIndices[0]];
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);