Appearance
KBE3D / KBCore / Cesium / GeometryPipeline / computeTangentAndBitangent
函数: computeTangentAndBitangent()
Computes per-vertex tangents and bitangents for a geometry containing <code>TRIANGLES</code>. The result is new <code>tangent</code> and <code>bitangent</code> attributes added to the geometry. This assumes a counter-clockwise winding order. <p> Based on <a href="http://www.terathon.com/code/tangent.html">Computing Tangent Space Basis Vectors for an Arbitrary Mesh</a> by Eric Lengyel. </p>
参数
geometry
The geometry to modify.
返回
The modified geometry argument with the computed tangent and bitangent attributes.
示例
ts
Cesium.GeometryPipeline.computeTangentAndBiTangent(geometry);