yskang

threejs-minecraft-2

Apr 15th, 2020
643
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Ground
  2. const planeGeometry = new THREE.PlaneGeometry( 60, 60 );
  3. const planeMaterial = new THREE.MeshLambertMaterial({ color: 0xffffff });
  4. const plane = new THREE.Mesh( planeGeometry, planeMaterial );
  5.  
  6. plane.rotation.x = -0.5 * Math.PI;
  7. plane.position.set( 0, -7, 0 );
  8. scene.add( plane );
Advertisement
Add Comment
Please, Sign In to add comment