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);Content copied to clipboard
Return
The modified geometry argument with the computed normal attribute.
Parameters
geometry
The geometry to modify.