Lightning in three.js -


i discovered piece of code, produces nice halo effect: shader-halo

i'm planning remove texture, , replace spheregeometry pipe or line or act part of lightning (i planing chain couple of glowing pipes/lines appear lightning.)

so question is: how change part in code draw pipe/line instead of sphere:

var ballgeometry = new three.spheregeometry( 120, 32, 16 ); var ball = new three.mesh( ballgeometry, custommaterial ); scene.add( ball ); 


Comments