SHARE
TWEET

Untitled

a guest Jun 19th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. loaderFrame.load(
  2.     './models/glasses/frame.json',
  3.     (geometry) => {
  4.         const mat = new THREE.MeshPhongMaterial({
  5.             color: 0xff6600,
  6.             shininess: 12,
  7.             specular: 0x00ffcc,
  8.             transparent: true
  9.         });
  10.  
  11.         frameMesh = new THREE.Mesh(geometry, mat);
  12.         frameMesh.scale.multiplyScalar(0.0064);
  13.         frameMesh.frustumCulled = false;
  14.         frameMesh.renderOrder = 10000;
  15.  
  16.         frameMesh.rotation.set(0,-0.2,0);
  17.  
  18.  
  19.     }
  20. );
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