Portal:Algorithms/Calculate Surface Normal

From OpenGL Wiki
< Portal:Algorithms
Revision as of 19:15, 27 July 2013 by Alfonse (talk | contribs) (Summary for normal computation.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to 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.