title: How to update Textures in ThreeJs?
body: <p>I'm trying to update my skybox textures by clicking on thumbnails.</p>
  
  <p>It's based on this example : <a href="http://threejs.org/examples/canvas_geometry_panorama.html" rel="nofollow">canvas_geometry_panorama.html</a></p>
  
  <p><br>
  The title of the thumbnail is matching with the folder that contains the skybox images.
  So with a simple jQuery script it will generate a link to the folder:</p>
  
  <pre><code>$('.thumbs img').click(function() {
  var myPath = 'img/' + $(this).attr("title") + '/';
  });
  </code></pre>
  
  <p>next I fill in the var in the loadTexture:</p>
  
  <pre><code>var materials = [
  
                  loadTexture(myPath+'lx.jpg'), // right
                  loadTexture(myPath+'rx.jpg' ), // left
                  loadTexture(myPath+'ly.jpg' ), // top
                  loadTexture(myPath+'ry.jpg' ), // bottom
                  loadTexture(myPath+'lz.jpg' ), // back
                  loadTexture(myPath+'rz.jpg' )  // front
  
              ];
  </code></pre>
  
  <p>But it is not updating.. Why?</p>