yskang

threejs-minecraft-13

Apr 15th, 2020 (edited)
859
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Set up stage light
  2.  
  3. // ... other code snippets
  4.  
  5. // const spotLight = new THREE.SpotLight( 0xffffff ); //!<<< Comment out this line
  6. //spotLight.position.set( -10, 40, 30 ); //!<<< Comment out this line
  7.  
  8. const spotLight = new THREE.SpotLight( 0xffffff, 5, 100 ); //!<<< Add this line
  9. spotLight.position.set( -10, 20, 20 );  //!<<< Add this line
  10.  
  11. // ... other code snippets
  12.  
  13. const ambientLight = new THREE.AmbientLight( 0x404040 );
  14. scene.add( ambientLight );
Advertisement
Add Comment
Please, Sign In to add comment