computeNormal

Computes per-vertex normals for a geometry containing TRIANGLES by averaging the normals of all triangles incident to the vertex. The result is a new normal attribute added to the geometry. This assumes a counter-clockwise winding order.

GeometryPipeline.computeNormal(geometry);

Return

The modified geometry argument with the computed normal attribute.

Parameters

geometry

The geometry to modify.

See also