PDA

View Full Version : Adative blending



darkrappey
01-24-2007, 04:29 PM
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.

ZbuffeR
01-25-2007, 12:03 AM
This is simple additive blending :

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

darkrappey
01-25-2007, 11:53 AM
Ok, and if using a alpha mapped texture then glBlendFunc( GL_SRC_ALPHA, GL_ONE ); ?