When tangents are not specified, client implementations SHOULD calculate tangents using default MikkTSpace algorithms with the specified vertex positions, normals, and texture coordinates associated with the normal texture.
This would allow us to render more models correctly like:
Using
scene::GltfLoader
, some models in glTF-Sample-Assets do not render correctly since theTANGENT
primitive attribute is missing.Currently, if tangents are not present then the tangent will be set to
{0, 0, 0, 0}
; normal maps won't be rendered correctly.From 3.7.2.1:
This would allow us to render more models correctly like: