Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Add Scene
- const scene = new THREE.Scene();
- this.scene = scene;
- // Add camera
- const camera = new THREE.PerspectiveCamera(
- 45,
- window.innerWidth / window.innerHeight,
- 0.001,
- 10000
- );
- camera.position.y = 2.0;
- camera.position.z = 9.0;
- this.scene.add( camera );
- this.camera = camera;
Add Comment
Please, Sign In to add comment