Options for the tangents function.

Hierarchy

  • TangentsOptions

Properties

generateTangents: (pos: Float32Array, norm: Float32Array, uv: Float32Array) => Float32Array

Type declaration

    • (pos: Float32Array, norm: Float32Array, uv: Float32Array): Float32Array
    • Callback function to generate tangents from position, uv, and normal attributes. Generally, users will want to provide the generateTangents from the mikktspace library, which is not included by default.

overwrite: boolean

Whether to overwrite existing TANGENT attributes.

Function symbol, f(📦) → 📦, where the argument and output are a box labeled 'glTF'.

Made by Don McCurdy TypeDoc documentation Copyright 2021 under MIT license