Having a Line object with THREE.LineBasicMaterial, I attempted to update the material:
material = new THREE.LineDashedMaterial({
dashSize: 5,
gapSize: 5,
})
line.material = material
line.material.needsUpdate = true
line.geometry.uvsNeedUpdate = true
line.geometry.verticesNeedUpdate = true
line.computeLineDistances()
Unfortunately, despite these changes, the line remains undotted. Any suggestions on how to achieve the desired effect?