title: THREE JS TextureLoader
body: <p>I am trying to add texture to a model that I converted to json and imported from 3ds Max. I searched but didn't find any code online which applies texture to json models using three.js r53. I guess the way Three.js handles textures changed from previous version. Any guidance?</p>
  
  <p>Following is my code:</p>
  
  <pre><code>var texloader = new THREE.TextureLoader();
  var tex=texloader.load("second.jpg");
  var mat = new THREE.MeshBasicMaterial({ map: tex });
  
  loader = new THREE.JSONLoader();
  loader.load( "js/JsonModels/toothz.js", function( geometry, mat ) {
      mat[0].shading = THREE.SmoothShading;
      var material = new THREE.MeshFaceMaterial( mat);
      mesh = new THREE.Mesh( geometry, material );
      mesh.scale.set( 3, 3, 3 );
      mesh.position.y = 0;
      mesh.position.x = 0;
      scene.add( mesh );
  } );
  </code></pre>