function calculateTangents(
positions: number[],
normals: number[],
uvs: number[],
indices: number[]
): number[]
Generates tangent information from the specified positions, normals, texture coordinates and triangle indices.
number
An array of 3-dimensional vertex positions.
number
An array of 3-dimensional vertex normals.
number
An array of 2-dimensional vertex texture coordinates.
number
An array of triangle indices.
number
An array of 3-dimensional vertex tangents.
const tangents = calculateTangents(positions, normals, uvs, indices)