Portal:Algorithms/Calculate Surface Normal

From OpenGL Wiki
Jump to: navigation, search

The normal for a vertex is vital information for computing lighting. Many mesh creation platforms will automatically compute vertex normals, but if you are getting a mesh from an arbitrary source, it is important to know how to compute those normals manually.