"A peculiar alliance has recently come into life. Forces from the extreme left, the extreme right, environmentalist groups, trade unions of developed countries and some self-appointed representatives of civil society, are gathering around a common endeavour: to save the people of developing countries from... development."
- Ernesto Zedillo, former President of Mexico

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.