XNA Creators Club Online

sample details

Shader Series 3: Per-Pixel Lighting
Sample
submitted
6/28/2007

Description:

This sample explains how to move lighting calculations to the pixel shader for high-quality per-pixel lighting. Additionally, this sample uses Phong reflection to approximate specular light, creating "highlights" on the object. Specular highlights are light that is reflected directly to a viewer and can be simulated through a number of techniques.

Other items in the Shader Series

downloads
Framework

GS 2.0

Vertex Shader Version

VS 2.0

Pixel Shader Version

PS 2.0

var gDomain='m.webtrends.com'; var gDcsId='dcschd84w10000w4lw9hcqmsz_8n3x'; var gTrackEvents=1; var gFpc='WT_FPC'; /*<\/scr"+"ipt>");} /*]]>*/
DCSIMG