Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: Adative blending

  1. #1
    Intern Contributor
    Join Date
    Sep 2006
    Location
    US(California)
    Posts
    58

    Adative blending

    How do I make my particle system have adative blending? As in, to particles(or sprites) overlaying each other will be brighter than one alone.
    -Josh

  2. #2
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,655

    Re: Adative blending

    This is simple additive blending :

    glEnable(GL_BLEND);
    glBlendFunc(GL_ONE, GL_ONE);

  3. #3
    Intern Contributor
    Join Date
    Sep 2006
    Location
    US(California)
    Posts
    58

    Re: Adative blending

    Ok, and if using a alpha mapped texture then glBlendFunc( GL_SRC_ALPHA, GL_ONE ); ?
    -Josh

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •