title: Attach a texture to a json object
body: <p>I can't get textures applied to a loaded json file. It works on a plane I dropped into the scene but not the object I'm loading (although I can change properties like metalness, etc).</p>
  
  <p>Here is the where I am:</p>
  
  <pre><code>const towerObj = new THREE.ObjectLoader()
  
  towerObj.load( "./3dassets/models/buiding.json",  function (object) {
      let tower = object
      scene.add(tower)
  
      const texture = new THREE.TextureLoader().load("./3dassets/materials/Concrete.png")
      const bumpMap = new THREE.TextureLoader().load("./3dassets/materials/Concrete_nrm.png")
  
      texture.wrapS = THREE.RepeatWrapping
      texture.wrapT = THREE.RepeatWrapping
      texture.repeat.set( 0.1, 0.1 )
      bumpMap.wrapS = THREE.RepeatWrapping
      bumpMap.wrapT = THREE.RepeatWrapping
      bumpMap.repeat.set( 0.1, 0.1 )
  
      tower.traverse( function (child) {
          if ( child instanceof THREE.Mesh ) {
              child.castShadow = true
              child.receiveShadow = true
  
              child.material = new THREE.MeshStandardMaterial()
              child.material.map = texture
              child.material.bumpMap = bumpMap
              child.material.needsUpdate = true
              child.material.roughness = 0.1
              child.material.metalness = 0
              child.color = 'rgb(244,244,244)'
              console.log(child.name)
  
          }
      });
  
  
  });
  </code></pre>
  
  <p>Here is a simplified version of the object (I removed most references to vertices, normals and faces otherwise it would crash the browser):</p>
  
  <pre><code>{
  "metadata": {
      "version": 4.5,
      "type": "Object",
      "generator": "Object3D.toJSON"
  },
  "geometries": [
      {
          "uuid": "2920CDAB-6DEC-4BEB-9BFB-C794B33A5AFB",
          "type": "Geometry",
          "data": {
              "vertices": [0.720958,8.47758],
              "normals": [-0.448833,0.782579],
              "faces": [50,0,48,47,0,0,1,2,3,50,48,95,]
          }
      }],
  
  "object": {
      "uuid": "EE10C174-4F45-45B3-80E6-8AA488B29F34",
      "type": "Mesh",
      "name": "tower",
      "castShadow": true,
      "receiveShadow": true,
      "matrix": [1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],
      "geometry": "2920CDAB-6DEC-4BEB-9BFB-C794B33A5AFB",
  }}
  </code></pre>