Advertisement
yskang

threejs-minecraft-1

Apr 15th, 2020
859
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Add camera
  2. const camera = new THREE.PerspectiveCamera( 45, window.innerWidth / window.innerHeight, 0.1, 1000 );
  3. camera.position.set( 30, 30, 30 );
  4. camera.lookAt( scene.position );
  5.  
  6. // Set up stage light
  7. const spotLight = new THREE.SpotLight( 0xffffff );
  8. spotLight.position.set( -10, 40, 30 );
  9. scene.add( spotLight );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement