Sign in to follow this  

Setting the color when lighting is disabled

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

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