"It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration."
- Edsger Dijkstra

Fragment level phong illumination
Thursday, February 13, 2003 | Permalink

PhongIllumination.pdf (158 KB)
Download code
This article goes through the whole process of creating fragment level phong illumination lighting. Both the theory and implementation is explained in detail. Pixel and vertex shader version 2.0 in DirectX 9 is used for the implementation.

This article was also published in the Shader X II book.