Jump to content
  • Advertisement
Sign in to follow this  

Setting the color when lighting is disabled

This topic is 3482 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

Hi, This is my first post here. I'm adding a Direct3D mode in a project of mine and I'm new to Direct3D. I'm using Direct3D version 9. I'm having difficulty finding how to set the rendering color when lighting is disabled *without* setting it in my vertices (no, I just can't do that in my project. My vertices don't have a color component and it would be to big of a modification to add that). I've looked everywhere. In Direct3D's own doc, on Google, everywhere I could think of, but I just can't find it. I'm beginning to wonder if it's even possible (except maybe by leaving global lighting enabled but disabling every individual light and setting the emissive color to the color I want, but that's not a very "clean" solution...). So, if anybody knows how to set the rendering color when lighting is disabled without setting it in my vertices, I would greatly appreciate if you please tell me how. Thank you very much for your help.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!