Generates normal information from the specified positions and triangle indices.
const normals = pc.calculateNormals(positions, indices); Copy
const normals = pc.calculateNormals(positions, indices);
An array of 3-dimensional vertex positions.
An array of triangle indices.
An array of 3-dimensional vertex normals.
Generates normal information from the specified positions and triangle indices.
Example