Add transparency to line cone & increase line thinkness by a pixel
This commit is contained in:
parent
2bc5c8b990
commit
301e579287
@ -240,6 +240,9 @@ function drawline(origin,dest) {
|
||||
var length = origin.distanceTo(dest);
|
||||
var arrowHelper = new THREE.ArrowHelper(direction.normalize(),origin,length,0xffffff,10,5);
|
||||
arrowHelper.name = "arrow";
|
||||
arrowHelper.cone.material.transparent = true;
|
||||
arrowHelper.cone.material.opacity = 0.25;
|
||||
arrowHelper.line.material.linewidth = 2;
|
||||
scene.add( arrowHelper );
|
||||
|
||||
animate();
|
||||
|
Loading…
Reference in New Issue
Block a user