Jump to content
  • Advertisement
Sign in to follow this  
Alex

Material alpha without lighting

This topic is 3893 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, I was wondering if it is possible to get material alpha blending to work without enabling lighting. Basically, it seem that the material colors provided get completely ignored unless lighting is enabled. But I am trying to render an interface element, which looks weird if lighting is enabled for it. Any ideas?

Share this post


Link to post
Share on other sites
Advertisement
You have three choices:

1) Per-pixel alpha stored in a texture
2) Per-vertex alpha stored as part of the diffuse colour
3) Per-draw-call alpha stored in the FF texture cascade (D3DRS_TFACTOR)

The material system, as you appear to have observed, is tied to the lighting stage in the D3D pipeline. You can't have materials without lighting and vice-versa.

hth
Jack

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!