irtk.connectors.nvdiffrast_connector.compute_vertex_normals¶
- irtk.connectors.nvdiffrast_connector.compute_vertex_normals(verts, faces)¶
Computes the packed version of vertex normals from the packed verts and faces. This assumes verts are shared between faces. The normal for a vertex is computed as the sum of the normals of all the faces it is part of weighed by the face areas.