add index to particles glsl

This commit is contained in:
PanPan 2017-05-19 23:43:25 +08:00
parent a75623f436
commit d9e3bbe17d

View file

@ -132,6 +132,7 @@ void main() {
}
uint particle_number = current_cycle * uint(total_particles) + uint(gl_VertexID);
int index = int(gl_VertexID);
if (restart) {
shader_active=emitting;