Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Mar 28th, 2020 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         polyhedron = createMesh(
  2.           new THREE.IcosahedronGeometry(200, 0),
  3.           'wood.png'
  4.         )
  5.         function createMesh(geom, imageFile) {
  6.         var texture = new THREE.TextureLoader().load('textures/' + imageFile)
  7.         //var texture = THREE.ImageUtils.loadTexture("textures/" + imageFile)
  8.         //texture.wrapS = THREE.RepeatWrapping;
  9.         //texture.wrapT = THREE.RepeatWrapping;
  10.         texture.repeat.set(1, 1)
  11.         var mat = new THREE.MeshPhongMaterial()
  12.         mat.map = texture
  13.  
  14.         var mesh = new THREE.Mesh(geom, mat)
  15.         return mesh
  16.       }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top