This commit is contained in:
parent
5b58c7302a
commit
9315d3550a
7
main.js
7
main.js
@ -15,6 +15,13 @@ scene.add( cube );
|
||||
|
||||
camera.position.z = 5;
|
||||
|
||||
const points = [];
|
||||
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 geometry2 = new THREE.BufferGeometry().setFromPoints( points );
|
||||
|
||||
function animate() {
|
||||
requestAnimationFrame( animate );
|
||||
renderer.render( scene, camera );
|
||||
|
Loading…
Reference in New Issue
Block a user