tangents

  • 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})
    );
    
Function symbol, where the argument and output are a box labeled 'glTF'.

Made by Don McCurdy. Documentation built with greendoc and published under Creative Commons Attribution 3.0.