summaryrefslogtreecommitdiff
path: root/drivers/gles3
diff options
context:
space:
mode:
authorPanPan <ippan829@gmail.com>2017-05-19 23:43:25 +0800
committerPanPan <ippan829@gmail.com>2017-05-19 23:43:25 +0800
commitd9e3bbe17d1ffe1a25f124c8ee1b22391cab4af3 (patch)
tree7f48b933187351a3d938a8bb895b42523159f767 /drivers/gles3
parenta75623f436c215e107ede321afa08a1897552deb (diff)
add index to particles glsl
Diffstat (limited to 'drivers/gles3')
-rw-r--r--drivers/gles3/shaders/particles.glsl1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gles3/shaders/particles.glsl b/drivers/gles3/shaders/particles.glsl
index fa12dd7408..dcd68315b0 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;