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. Documentation built with greendoc and published under Creative Commons Attribution 3.0.
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}) );