Results 1 to 2 of 2

Thread: blend the white out and not the black?

  1. #1
    Member Contributor
    Join Date
    May 2003
    Posts
    50

    blend the white out and not the black?

    i know the function glBlendFunc(GL_SRC_ALPHA,GL_ONE) blends out the darker colors, but is there a blending function to blend out the lighter colors?

  2. #2
    Super Moderator OpenGL Guru imported_dorbie's Avatar
    Join Date
    Jul 2000
    Location
    Bay Area, CA, USA
    Posts
    3,966

    Re: blend the white out and not the black?

    Instead of GL_ONE as the destination parameter use GL_ONE_MINUS_SRC_ALPHA

Similar Threads

  1. Black and white mask
    By Bitblit in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 06-23-2010, 03:18 AM
  2. black & white
    By zukko in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 09-19-2004, 11:48 AM
  3. Why its black and white?
    By lsdi in forum OpenGL: Basic Coding
    Replies: 10
    Last Post: 01-06-2002, 01:01 AM
  4. Converting to Black/White image
    By GeorgeSarkisyan in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 01-16-2001, 03:36 AM
  5. Black&White scene
    By Arath in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 10-17-2000, 05:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean