"You cannot strengthen the weak by weakening the strong. You cannot help the wage-earner by pulling down the wage-payer. You cannot help the poor by destroying the rich. You cannot help men permanently by doing for them what they could and should do for themselves."
- Abraham Lincoln

Framework 4 (Last updated: October 25, 2019)
Framework 3 (Last updated: February 6, 2017)
Framework 2 (Last updated: October 8, 2006)
Framework (Last updated: October 8, 2006)
Libraries (Last updated: September 16, 2004)
Really old framework (Last updated: September 16, 2004)
Phong illumination
Thursday, February 13, 2003 | Permalink

Executable
Source code
PhongIllumination.zip (1.5 MB)

Required:
Pixel shader v2.0
Vertex shader v2.0
R32F cube render targets.
This is another phong lighting with shadows demo. The difference compared to earlier work is that this one uses Direct3D, R32F shadow cubemaps are used, the squared distance is stored in the shadow map and a multiplication factor is used instead of bias for a nice speedup.

This is the illustrating code for the "Fragment level Phong illumination" article available in the new Articles section.