Skip to content

KBE3D / KBCore / Cesium / GeometryPipeline / computeTangentAndBitangent

函数: computeTangentAndBitangent()

computeTangentAndBitangent(geometry: Geometry): Geometry

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

Geometry

The geometry to modify.

返回

Geometry

The modified geometry argument with the computed tangent and bitangent attributes.

示例

ts
Cesium.GeometryPipeline.computeTangentAndBiTangent(geometry);

KBE3D @3.0.0 Copyright © 2024-present KBE3D