Jump to content
  • Advertisement

Archived

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

dani333

Alpha channel - Please help

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

How can i create an alpha channel so i can have a different value of alpha and texture on each pixel? I have a texture with two planes 1 for texture and 1 for alpha values. OpenGl - c++/c Thanks:-)

Share this post


Link to post
Share on other sites
Advertisement
you need to create an actual image that contains an alpha channel. Then when loading, specify GL_RGBA when creating the texture. You also need to enable alpha blending with the correct blending function.

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!