Hi, I’ m trying to show a dashed line.
const geometr = new THREE.LineGeometry();
const pointsPR = [];
pointsPR.push(-100,0,0);
pointsPR.push(100, 0, 0);
geometr.setPositions(pointsPR);
matLine = new THREE.LineMaterial({
color: 0xffff00,
linewidth: 0.004, // in pixels
//resolution: // to be set by renderer, eventually
dashed: true,
});
lineEX = new THREE.Line2(geometr, matLine);
But shows the line continious. Thanks