i want to draw a particle system on Android, where the particles are continuously flowing from a specified point. without shaders i'm able to get that by checking for life of particle. if life is zero then reset the position to the center.
how to achieve the same with shaders?? i took a lifetime variable to keep track whether particle is alive. once particle is dead, i want reposition particle around the specified point. this lifetime will be random for each particle, is there any way i can achieve this with shaders??
to make my question easy to understand, for example i want to implement NeHe lesson 19 (Please see DrawGLScene of lesson 19)with Shader....
Full code of my work can be found below for reference