code: function (src, data, handleImageTextureLoaded) {
      var hash = this.hash(data);
      var textureCache = this.textureCache;
  
      // Texture already being loaded or already loaded. Wait on promise.
      if (textureCache[hash]) {
        textureCache[hash].then(handleImageTextureLoaded);
        return;
      }
  
      // Texture not yet being loaded. Start loading it.
      textureCache[hash] = loadImageTexture(src, data);
      textureCache[hash].then(handleImageTextureLoaded);
    }
docs: High-level function for loading image textures (THREE.Texture).
  
  @param {Element|string} src - Texture source.
  @param {object} data - Texture data.
  @param {function} cb - Callback to pass texture to.