I'm having trouble in Three.js attempting to create a cube with dashed line edges, but the lines are still appearing solid. Below is my code snippet:
var mat_line = new THREE.LineDashedMaterial( { color: "black", dashSize: 1, gapSize: 1 } );
var geometry = new THREE.BoxGeometry( 10, 10, 10 );
geometry.computeLineDistances();
var cube = new THREE.Mesh( geometry, mat_cube );
scene.add( cube )
var edges = new THREE.EdgesGeometry( geometry )
var line = new THREE.LineSegments( edges, mat_line )
scene.add( line )
Would appreciate any insights into where I might be making a mistake or if achieving dashed lines with this method is not feasible?