Zanir » Blog Archive » Program 16 – Per Pixel Lighting

Program 16 – Per Pixel Lighting

23.08.2004

016_Per_Pixel_LightingProgram uses pixel shaders for lighting scene with one point light. Light have ambient, diffuse and specular factor.

- variable specular exponet
- cube map normalization
- attenuation with choice from 7 equation
- 3 various technique for attenuation

Request pixel shader 1.1. Uses also pixel shader 1.4.

source code and executable – 720kB

Leave a Reply