Rewrote the objl library and did some conversion helper classes

This commit is contained in:
Ben
2019-02-23 12:02:28 +00:00
parent a170621eea
commit cf7b72df2a
7 changed files with 285 additions and 8 deletions

View File

@@ -9,7 +9,7 @@ Mesh::Mesh(std::string objPath) {
}
Mesh::Mesh(objl::Mesh objMesh) {
OBJLtoGLM(objMesh.Vertices, vertices);
OBJLtoGLM(objMesh.Vertices, vertices, normals, texCoords);
// objMesh.Vertices includes normals, positions and texcoords
// it must convert them to the neccesary GLM shit
}