Per Pixel Lighting in Direct3d *SOLVED*
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]
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
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement