var myVertexFunction = function (particle, vertex, i) {
......
}
SPS.updateParticleVertex = myVertexFunction;
Line 41 in this PG gives vertex undefined error https://www.babylonjs-playground.com/#1X7SUN#5
OK in stable https://www.babylonjs-playground.com/indexStable.html#1X7SUN#5