Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Add camera
- const camera = new THREE.PerspectiveCamera( 45, window.innerWidth / window.innerHeight, 0.1, 1000 );
- camera.position.set( 30, 30, 30 );
- camera.lookAt( scene.position );
- // Set up stage light
- const spotLight = new THREE.SpotLight( 0xffffff );
- spotLight.position.set( -10, 40, 30 );
- scene.add( spotLight );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement