UNPKG

@gltf-transform/functions

Version:

Functions for common glTF modifications, written using the core API

13 lines (12 loc) 326 B
import { Texture } from '@gltf-transform/core'; /** * Returns names of all texture slots using the given texture. * * Example: * * ```js * const slots = listTextureSlots(texture); * // → ['occlusionTexture', 'metallicRoughnessTexture'] * ``` */ export declare function listTextureSlots(texture: Texture): string[];