Program 17 – Many Per Pixel Lights
13.09.2004
Program uses pixel shaders for lighting scene with many point lights. Light have diffuse, specular and attenuation. One lights request one pass. Because not each triangle is lighting with all lights, each triangle is draw only for lights which lighting his. In program is possible to add light with push left mouse button. Count of lights in scene is limited by count of vertex shader constants. For GF3 and GF4 is maximum count of lights 45, for Radeon 8500 is 90.
Request pixel shader 1.1. Uses also pixel shader 1.4.