Hi,
On line
|
tex_coords: [m.mesh.texcoords[i * 2], 1.0 - m.mesh.texcoords[i * 2 + 1]], |
The code tex_coords: [m.mesh.texcoords[i * 2], 1.0 - m.mesh.texcoords[i * 2 + 1]], substracts the second UV coordinate from 1.0 instead of loading it from the file unchanged.
Why do you do this when loading a 3D model? Is there something specific to WGPU that we should know?
Thanks for your time.