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,
- 100
- );
- camera.position.set( 10, 10, 10 );
- camera.lookAt( scene.position );
- // Set up stage light
- const pointLight = new THREE.PointLight( 0xffffff );
- pointLight.position.set( 10, 10, -10 );
- scene.add( pointLight );
Advertisement
Add Comment
Please, Sign In to add comment