Clear some properties in `ParticleBuffer.destroy()`. (#4407)
* Clear some properties in `destroy`

* Update ParticleShader.js

The ` vec2 v = aVertexPosition;` is needless , 
the  `v` is a new vec2 , use `aVertexPosition` will puzzle users (the people that read the code).

The  ` if (color.a == 0.0) discard;` will take unexpected result.

* Update ParticleBuffer.js

* cosmetic
1 parent d52e188 commit 4ff9ec27a8c2fdfd5b4d35f1fcd6143fbb8b9e18
@finscn finscn authored on 16 Nov 2017
Matt Karl committed on 16 Nov 2017
Showing 2 changed files
View
packages/particles/src/webgl/ParticleBuffer.js
View
packages/particles/src/webgl/ParticleShader.js