C4 Engine
C4 Engine API Documentation

Mesh::BuildTangentArray

Defined in:  C4Mesh.h
Builds the array of tangent vectors for a mesh.
Prototype

void BuildTangentArray(const Mesh *inputMesh);

Parameters
inputMesh The input mesh.
Description
The BuildTangentArray function adds a tangent array to a mesh. The vertex, normal, texture coordinate, and primitive information in the input mesh is used to a calculate tangent vector and handedness for each vertex. All other array data from the input mesh is copied to the output mesh.
See Also

Mesh::BuildNormalArray