Compute smooth vertex normals for a mesh that arrives without them. Accumulates each triangle's cross product onto its three vertices, then normalizes, so a vertex shared by several triangles ends up with their average and the mesh shades smoothly.
Flat array of vertex positions [x,y,z,x,y,z,...]
Triangle indices
Flat array of normals [nx,ny,nz,nx,ny,nz,...]
Namespace: Bit
Other top-level symbols:
API reference home · Full symbol index · Tutorials and guides · Platform
Compute smooth vertex normals for a mesh that arrives without them. Accumulates each triangle's cross product onto its three vertices, then normalizes, so a vertex shared by several triangles ends up with their average and the mesh shades smoothly.