Phong Lighting



Phong lighting is the most common lighting model for its simplicity and surprising results.  The video below will show my implementation of three forms of phong lighting: point, spot, and directional light.  Point light is simply a point in space where light radiates equally in all directions.  Spot light is similar to point except that spot lights have a specific direction of where it will radiate to.  Lastly, directional light has no position in space, but only direction.  Many people often make the analogy that directional light is like the sun, where the sun's rays are essentially parallel to each other.  Even though this parallelism is not technically true, game programmers simply find the offset of the light vector negligible.