• Advertisement
Sign in to follow this  

Material alpha without lighting

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