Math and algorithms

From OpenGL Wiki
Jump to navigation Jump to search

Calculating a Surface Normal

Required from the application by OpenGL for lighting calculations.

Vector Dot Product

Useful in lighting calculations.