Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Prepare stage scene
- const scene = new THREE.Scene();
- // Add actors of this scene
- const geometry = new THREE.BoxGeometry( 1, 1, 1 );
- const material = new THREE.MeshPhongMaterial( { color: 0x0000ff } );
- const cube = new THREE.Mesh( geometry, material );
- cube.position.set( 0, 0, 0 );
- scene.add( cube );
Advertisement
Add Comment
Please, Sign In to add comment