Appearance
KBE3D / KBCore / Cesium / GeometryPipeline / computeNormal
函数: computeNormal()
Computes per-vertex normals for a geometry containing <code>TRIANGLES</code> by averaging the normals of all triangles incident to the vertex. The result is a new <code>normal</code> attribute added to the geometry. This assumes a counter-clockwise winding order.
参数
geometry
The geometry to modify.
返回
The modified geometry argument with the computed normal attribute.
示例
ts
Cesium.GeometryPipeline.computeNormal(geometry);