microsoft / glTF-Toolkit

A collection of tools for modifying and optimizing glTF assets
MIT License
295 stars 41 forks source link

LOD merge with tangents fails #32

Closed erikdahlstrom closed 6 years ago

erikdahlstrom commented 6 years ago

LOD merge causes the tangents from the highest LOD to be used where it really should use the tangents from the appropriate LOD instead.

I think all that's needed is a line in GLTFLODUtils.cpp::AddGLTFNodeLOD: ... AddIndexOffset(primitive.tangentsAccessorId, accessorOffset); ...