Rendering lightning-like figures in Javascript/WebGL.