Generates MikkTSpace vertex tangents for mesh primitives, which may fix rendering issues occuring with some baked normal maps. Requires access to the mikktspace WASM package, or equivalent.
Example:
import { generateTangents } from 'mikktspace';
import { tangents } from '@gltf-transform/functions';
await document.transform(
tangents({generateTangents})
);
Made by Don McCurdy • Documented with greendoc • © 2023 MIT License
tangents