See the Pen 3D particles to a 2D canvas by borian (@borian) on CodePen.