Jump to content
  • Advertisement


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


Best blending function to have max. contrast?

This topic is 5578 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 was wondering which blending function (or other technique) is best to have a maximum contrast between the background and the text I am drawing on top of it. I want my text to be readable in every situation (black background -> white text, white background -> black text, grey background -> ??, and so on) I used glBlendFunc(GL_ONE_MINUS_DST_COLOR,GL_ZERO) but this doesn''t give good results with a grey background... Thanks

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!