computeTangentAndBitangent
Computes per-vertex tangents and bitangents for a geometry containing TRIANGLES
. The result is new tangent
and bitangent
attributes added to the geometry. This assumes a counter-clockwise winding order.
Based on Computing Tangent Space Basis Vectors for an Arbitrary Mesh by Eric Lengyel.
GeometryPipeline.computeTangentAndBiTangent(geometry);
Content copied to clipboard
Return
The modified geometry
argument with the computed tangent
and bitangent
attributes.
Parameters
geometry
The geometry to modify.