Define a ShaderTextureDescriptor used to associate a Texture with the corresponding Sampler and UV names.

interface ShaderTextureDescriptor {
    texture: MediaTexture | Texture;
    sampler?: Sampler;
    texCoordAttributeName?: string;
}

Properties

Texture or MediaTexture to use.

sampler?: Sampler

Sampler to use. Fallback to default sampler if not provided.

texCoordAttributeName?: string

Texture coordinate attribute name to use to map this texture. Default to 'uv'.