Jump to content
  • Advertisement
Sign in to follow this  
SpecialSymbols

DirectX 10: No lighting functions/classes?

This topic is 3147 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm learning DirectX10 and I'm in the subject of lighting, and I noticed that DirectX9 had structs related to lighting and that the DirectX9 device object had functions like ::SetLight() to control the lighting. Are there any built-in funcitons/structs to control lighting in DirectX 10? Or does lighting always have to be coded manually in the pixel shader?

Share this post


Link to post
Share on other sites
Advertisement
DX9 lighting was part of the fixed-function-pipeline, which has been removed from DX10.

Share this post


Link to post
Share on other sites
Check the Sample Browser in the SDK for the FixedFuncEMU sample. It shows how to emulate D3D9 fixed function functionality (including lighting) in D3D10.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!