Sign in to follow this  

Material alpha without lighting

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

This topic is 3669 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.

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