Jump to content
  • Advertisement
Sign in to follow this  

Need help, odd blendfunc() results

This topic is 4045 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
Sign in to follow this  

  • 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!