summaryrefslogtreecommitdiff
path: root/drivers/gles3
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-06-12 23:33:41 -0300
committerGitHub <noreply@github.com>2017-06-12 23:33:41 -0300
commitea6cb22329480a8fb17f754af36d6842ecbc51ac (patch)
tree4b8a49d6b7a7acc5709be34b5b3a316b7420a2d4 /drivers/gles3
parentfc04e0b1f28823458e735675363fa7a649572a91 (diff)
parentd9e3bbe17d1ffe1a25f124c8ee1b22391cab4af3 (diff)
Merge pull request #8835 from ippan/particles_shader_index
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 5d8a532f87..c1356bb110 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;