Xbox LIVE Indie Games

code sample details

Shader Series 3: Per-Pixel Lighting

Submitted
6/28/2007
Code Sample

Description:

This sample explains how to move lighting calculations to the pixel shader for high-quality per-pixel lighting.


Sample Overview

This sample uses Phong reflection to approximate specular light, creating highlights on the object. Specular highlights are light that's reflected directly to a viewer. These highlights can be simulated through a number of techniques.


Other items in the Shader Series



All content and source code downloaded from this page are bound to the Microsoft Permissive License (Ms-PL).

downloads

Framework

GS 4.0

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