PDA

View Full Version : Adative blending



darkrappey
01-24-2007, 03: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-24-2007, 11:03 PM
This is simple additive blending :

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

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