Sign in to follow this  
Scorpide

[DirectX] Alpha blending + light

Recommended Posts

Hi, That's my first post in this forum :) I've got a problem. I'm experimenting with some basic blending. Now I'm doing a semi-transparent cube. I've done it and it's perfectly working, but now there is another threat - I cant add light to it. When I set
d3dDevice->SetRenderState( D3DRS_LIGHTNING, TRUE );
and turning a light on, no light appear and semitransparency dissapear. I cannot find it anywhere on the Internet... Please help me!

Share this post


Link to post
Share on other sites
Quote:
Original post by Scorpide
Yes, I have set everything. Lights are working properly without alpha blending, but with semitransparency it doesn't work ;(
Can we see your code? If it's quite large, is it possible to reduce it down to a small test case?

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