Per Pixel Lighting in Direct3d *SOLVED*

Started by
1 comment, last by GavRobbs 16 years, 8 months ago
How do I get per pixel lighting in DX? Is there any function, or do I have to use pixel shaders? [Edited by - GavRobbs on August 10, 2007 6:52:35 PM]
Advertisement
Fixed function bump mapping (google "EMBM" iirc) existed in D3D6 and I know there was directional DP3 per-pixel lighting in D3D7 (maybe earlier).

There has never been a "Per Pixel Lighting = On" switch, but fixed-function is probably as close to that as you could hope to get.

These days it's all about pixel shaders - you'll find a million examples of this online and in books. You might still find some legacy FF-style examples, but I doubt they're up-to-date or easy to find.

hth
Jack

<hr align="left" width="25%" />
Jack Hoxley <small>[</small><small> Forum FAQ | Revised FAQ | MVP Profile | Developer Journal ]</small>

Thanks a lot. Time to go learn pixel shaders...*sigh*

This topic is closed to new replies.

Advertisement