diff options
author | Juan Linietsky <reduzio@gmail.com> | 2017-06-12 23:33:41 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-12 23:33:41 -0300 |
commit | ea6cb22329480a8fb17f754af36d6842ecbc51ac (patch) | |
tree | 4b8a49d6b7a7acc5709be34b5b3a316b7420a2d4 /drivers/gles3 | |
parent | fc04e0b1f28823458e735675363fa7a649572a91 (diff) | |
parent | d9e3bbe17d1ffe1a25f124c8ee1b22391cab4af3 (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.glsl | 1 |
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; |