Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

doc_zero

Transparency + transparency?

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

If I have a texture with an alpha channel (0.5)and I draw it with the color which has transparency set to 0.6. What is the transparency value, which will be taken by blending function? Is it only one of them, or is it combination, I would suggest (0.5+0.6)/2=0.55 Regards, Alexander.

Share this post


Link to post
Share on other sites
Advertisement
Wouldnt you just take the 60% of the 50%?

IE .5 * .6 = .3 total visable transparency.

Share this post


Link to post
Share on other sites
That is what I see from experements. I did not notice the definition in the documentation, so I wanted to ask.

Thanks.

Share this post


Link to post
Share on other sites
It depends from the texenv you are using.
If the texenv is GL_REPLACE you will get .5 alpha. If you leave the texenv to default, which is GL_MODULATE you will get .5*.6 = .3 alpha.

There are also other texenvs avaiable here and there.
This comes BEFORE blendfunc is applied, leave it out.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!