yskang

threejs-minecraft-10

Apr 15th, 2020
1,241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Skin Color
  2.  
  3. // ... other code snippet
  4.  
  5. const headMaterials = [];
  6. for( let i = 0; i < 6; i++ ) {
  7.     let map;
  8.  
  9.     if( i === 4 ) map = faceMap;
  10.     else map = skinMap;
  11.  
  12.     headMaterials.push(new THREE.MeshStandardMaterial({ map }));
  13. }
Advertisement
Add Comment
Please, Sign In to add comment