Jump to content
  • Advertisement
Sign in to follow this  
hyn

Need help, odd blendfunc() results

This topic is 4136 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'm getting strange results from my blendfunc() where even if I'm using the same parameters, the blending is different depending on the x position of my textures. The x position is the ONLY relevant difference between them (other than the fact that they're using different textures). Here's what it looks like: I'm using my RGBA shadow texture to simulate a drop shadow. I get the desired results for textures in the left side of screen, but on the right side the part that's supposed to be transparent is not transparent, it gets the background color. I'm using glBlendFunc(GL_SRC_COLOR, GL_ONE_MINUS_SRC_ALPHA); Any ideas? Thanks.

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!