Per Pixel Lighting
Description:
This demo draws a torus lit by four colored lights. One pass is performed for each light, which is attenuated per-pixel using 2 textures. Diffuse tangent space bump mapping is also performed per light, using NV_register_combiners.
Requirements:
EXT_compiled_vertex_array
EXT_texture_edge_clamp
ARB_multitexture with at least 4 texture units
NV_register_combiners
NV_vertex_program
References:
Per-Pixel Lighting, by Philip Taylor. msdn.microsoft.com
Texture Compositing with Register Combiners, by John Spitzer. developer.nvidia.com
Real-Time Per-Pixel Point Lights and Spot Lights, by Ron Frazier. www.ronfrazier.net/apparition