epsxk82
10-21-2010, 03:30 AM
http://farm4.static.flickr.com/3527/4627518705_2eac742ecc.jpg
Using textures above, i'm making a explosion particle effect.
But now i have got stuck in a problem. I set the two arguments of glBlendFunc as GL_ONE, GL_ONE so that overlapping parts among particles gets lighter. But except that all exsiting pixels in frame buffer are black, color of particle effect is deferrent from what i want because of the blendmode i set(in case of drawing partlce effects on white background color, outputs are white).
Now i consider all partcle effects are drawn into FBO before being drawn into frame buffer. But i think that's not sensible idea cosidering performance. Is there any other solution or any other feasible way using blend functions?
Using textures above, i'm making a explosion particle effect.
But now i have got stuck in a problem. I set the two arguments of glBlendFunc as GL_ONE, GL_ONE so that overlapping parts among particles gets lighter. But except that all exsiting pixels in frame buffer are black, color of particle effect is deferrent from what i want because of the blendmode i set(in case of drawing partlce effects on white background color, outputs are white).
Now i consider all partcle effects are drawn into FBO before being drawn into frame buffer. But i think that's not sensible idea cosidering performance. Is there any other solution or any other feasible way using blend functions?