Open ferreram opened 2 months ago
Hello @ferreram ! I appreciate your contribution but sadly something is not working well :( When I tried to merge it to the master and run some simulations, the meshes are messed up completely (see screenshot). I export meshes using Blender as triangulated and with normals and UV coordinates.
Hi @patrykcieslak. Sorry for the inconvenience, I forgot a minus one to access vector elements from the IDs of vertices / normals / uvs in the obj files. It should properly work now.
Please, note that the speed-up is mostly significant on big models.
My results from running a few tests:
Added hash function for Vertex / TexturableVertex. Fix errors in TexturableVertex struct (uv init with glm::vec3 & tangent data not checked for equality operator). Simplify default constructor of Vertex / TexturableVertex & equality operator of those & Face struct.