• listTextureInfo(texture: Texture): TextureInfo[]
  • Lists all TextureInfo definitions associated with a given Texture. May be used to determine which UV transforms and texCoord indices are applied to the material, without explicitly checking the material properties and extensions.


    // Find TextureInfo instances associated with the texture.
    const results = listTextureInfo(texture);
    // Find which UV sets (TEXCOORD_0, TEXCOORD_1, ...) are required.
    const texCoords = => info.getTexCoord());
    // → [0, 1]
Function symbol, where the argument and output are a box labeled 'glTF'.

Made by Don McCurdy. Documentation built with greendoc and published under Creative Commons Attribution 3.0.