Zanir » Blog Archive » Program 17 – Many Per Pixel Lights

Program 17 – Many Per Pixel Lights

13.09.2004

017_Many_Per_Pixel_Lights_2Program 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. 017_Many_Per_Pixel_Lights_1

Request pixel shader 1.1. Uses also pixel shader 1.4.

source code and executable – 500kB

Leave a Reply