Sign in to follow this  
GavRobbs

Per Pixel Lighting in Direct3d *SOLVED*

Recommended Posts

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]

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this