ParticleGenerator finished

add a meterial to demo, finished the basic function and fix some bugs.