function (material) {
    delete this.materials[material.uuid];

    // If any textures on this material are no longer in use, dispose of them.
    var textureCounts = this.textureCounts;
    Object.keys(material)
      .filter(function (propName) {
        return material[propName] && material[propName].isTexture;
      })
      .forEach(function (mapName) {
        textureCounts[material[mapName].uuid]--;
        if (textureCounts[material[mapName].uuid] <= 0) {
          material[mapName].dispose();
        }
      });
  }
function (material) {
    delete this.materials[material.uuid];

    // If any textures on this material are no longer in use, dispose of them.
    var textureCounts = this.textureCounts;
    Object.keys(material)
      .filter(function (propName) {
        return material[propName] && material[propName].isTexture;
      })
      .forEach(function (mapName) {
        textureCounts[material[mapName].uuid]--;
        if (textureCounts[material[mapName].uuid] <= 0) {
          material[mapName].dispose();
        }
      });
  }
function ( material ) { delete this . materials [ material . uuid ] ; // If any textures on this material are no longer in use, dispose of them. var textureCounts = this . textureCounts ; Object . keys ( material ) . filter ( function ( propName ) { return material [ propName ] && material [ propName ] . isTexture ; } ) . forEach ( function ( mapName ) { textureCounts [ material [ mapName ] . uuid ] -- ; if ( textureCounts [ material [ mapName ] . uuid ] <= 0 ) { material [ mapName ] . dispose ( ) ; } } ) ; }
Stop tracking material, and dispose of any textures not being used by
another material component.

@param {object} material
Stop tracking material and dispose of any textures not being used by another material component .
Remove material from cache