This commit is contained in:
parent
9315d3550a
commit
61d1e9f16e
3
main.js
3
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 );
|
||||
|
Loading…
Reference in New Issue
Block a user