diff --git a/main.js b/main.js index 0285b2c..7c0b8ec 100644 --- a/main.js +++ b/main.js @@ -20,7 +20,10 @@ points.push( new THREE.Vector3( - 10, 0, 0 ) ); points.push( new THREE.Vector3( 0, 10, 0 ) ); points.push( new THREE.Vector3( 10, 0, 0 ) ); + +const material2 = new THREE.LineBasicMaterial( { color: 0x0000ff } ); const geometry2 = new THREE.BufferGeometry().setFromPoints( points ); +const line = new THREE.Line( geometry2, material2 ); function animate() { requestAnimationFrame( animate );