From d9e3bbe17d1ffe1a25f124c8ee1b22391cab4af3 Mon Sep 17 00:00:00 2001 From: PanPan Date: Fri, 19 May 2017 23:43:25 +0800 Subject: [PATCH] add index to particles glsl --- drivers/gles3/shaders/particles.glsl | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gles3/shaders/particles.glsl b/drivers/gles3/shaders/particles.glsl index fa12dd7408d..dcd68315b02 100644 --- a/drivers/gles3/shaders/particles.glsl +++ b/drivers/gles3/shaders/particles.glsl @@ -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;