Merge pull request #8835 from ippan/particles_shader_index

add index to particles glsl
This commit is contained in:
Juan Linietsky 2017-06-12 23:33:41 -03:00 committed by GitHub
commit ea6cb22329

View file

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