Math and algorithms

From OpenGL.org
Jump to: navigation, search

Calculating a Surface Normal

Required from the application by OpenGL for lighting calculations.

Vector Dot Product

Useful in lighting calculations.