getTexture method

dynamic getTexture(
  1. dynamic textureMap,
  2. dynamic id
)

Implementation

getTexture(textureMap, id) {
  // if the texture is a layered texture, just use the first layer and issue a warning
  if (fbxTree.Objects["LayeredTexture"] != null &&
      fbxTree.Objects["LayeredTexture"].id != null) {
    print(
        'THREE.FBXLoader: layered textures are not supported in three.js. Discarding all but first layer.');
    id = connections[id].children[0].ID;
  }

  return textureMap[id];
}