Mesh::BuildTangentArray
Defined in:
Builds the array of tangent vectors for a mesh.
C4Mesh.h
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