title: How to assign a material to ColladaLoader or OBJLoader
body: <p>I have looked through the documentation as well as many examples and wasn't able to find correct syntax for assigning a material to either a Collada .dae or OBJLoader .obj file.</p>
  
  <p>Json files seem to properly work when creating a <code>Mesh</code> and having the loader as geometry and material as the set material.</p>
  
  <p>Code like this works</p>
  
  <pre><code>var loader = new THREE.JSONLoader();
  loader.load( "modelPath.js", function(geometry){
    var material = new THREE.MeshLambertMaterial({color: 0x666666});
    mesh = new THREE.Mesh(geometry, material);
    scene.add(mesh);
  });
  </code></pre>
  
  <p>This does not work</p>
  
  <pre><code>var loader = new THREE.ColladaLoader();
  loader.load( "modelPath.dae", function(geometry){
    var material = new THREE.MeshLambertMaterial({color: 0x666666});
    mesh = new THREE.Mesh(geometry, material);
    scene.add(mesh);
  });
  </code></pre>
  
  <p>And this does not work</p>
  
  <pre><code>var loader = new THREE.OBJLoader();
  loader.load( "modelPath.obj", function(geometry){
    var material = new THREE.MeshLambertMaterial({color: 0x666666});
    mesh = new THREE.Mesh(geometry, material);
    scene.add(mesh);
  });
  </code></pre>
  
  <p>I have also tried <code>geometry.material = new THREE.MeshLambertMaterial({ color: 0xff0000});</code> inside <code>function(geometry)</code> without success.</p>
  
  <p>.Dae format seems to keep material color directly from 3D programs like Cinema. How can I set a material to these loaders properly? If this is even possible.</p>