Add transparency to line cone & increase line thinkness by a pixel

This commit is contained in:
Rob L 2016-07-25 13:24:40 -04:00
parent 2bc5c8b990
commit 301e579287

View File

@ -240,6 +240,9 @@ function drawline(origin,dest) {
var length = origin.distanceTo(dest); var length = origin.distanceTo(dest);
var arrowHelper = new THREE.ArrowHelper(direction.normalize(),origin,length,0xffffff,10,5); var arrowHelper = new THREE.ArrowHelper(direction.normalize(),origin,length,0xffffff,10,5);
arrowHelper.name = "arrow"; arrowHelper.name = "arrow";
arrowHelper.cone.material.transparent = true;
arrowHelper.cone.material.opacity = 0.25;
arrowHelper.line.material.linewidth = 2;
scene.add( arrowHelper ); scene.add( arrowHelper );
animate(); animate();