Using NaN in attributes

Here is another approach.
No NaNs, no shaders. Just THREE.LineSegments() with a single indexed THREE.BufferGeometry():
https://jsfiddle.net/prisoner849/1j131tnt/
Single_geometry_of_curves_wo_NaNs

For the reference:
https://threejs.org/examples/?q=line#webgl_buffergeometry_lines_indexed

1 Like