Merge pull request #8835 from ippan/particles_shader_index
add index to particles glsl
This commit is contained in:
commit
ea6cb22329
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue