Currently, I am utilizing a THREE.BufferGeometry
to effectively manage the color of each segment in the Line by utilizing the color
attribute.
geometry = new THREE.BufferGeometry();
var material = new THREE.LineBasicMaterial({
vertexColors: THREE.VertexColors
});
geometry.addAttribute('position', new THREE.BufferAttribute(points, 3));
geometry.addAttribute('color', new THREE.BufferAttribute(colors, 3));
scene.add(new THREE.Line(geometry, material, THREE.LinePieces));
I'm exploring if there is a method to incorporate a custom attribute and link it with LineBasicMaterial.linewidth
to enable the adjustment of thickness for individual line segments?