Skip to main content

gpu_compute_normals

Function gpu_compute_normals 

Source
pub fn gpu_compute_normals(mesh: &mut GpuMesh)
Expand description

Recompute per-vertex normals using area-weighted face normals.

Each vertex normal is the normalised sum of the normals of its incident triangles, weighted by the triangle area.