Generates tangent information from the specified positions, normals, texture coordinates and triangle indices.
const tangents = pc.calculateTangents(positions, normals, uvs, indices); Copy
const tangents = pc.calculateTangents(positions, normals, uvs, indices);
An array of 3-dimensional vertex positions.
An array of 3-dimensional vertex normals.
An array of 2-dimensional vertex texture coordinates.
An array of triangle indices.
An array of 3-dimensional vertex tangents.
Generates tangent information from the specified positions, normals, texture coordinates and triangle indices.
Example