Architeuthis wrote:Paint dots and lines. That goes into the brightness buffer (add values for said line and dot to the brightness buffer) Then do the brightness decay (de-accumulate ALL pixels). A dot moving across the screen would leave a trail.
Ok, so you want a particle system.
Forget about brightness buffer and read this:
http://www.opengl-tutorial.org/intermed ... nstancing/
Here is a demo code for a fireworks animation:
http://r3dux.org/2010/10/how-to-create- ... l-and-sdl/