API

Interface ITextureMergeConfiguration

Configuration for texture merging operation

interface ITextureMergeConfiguration {
    alpha?: ChannelInput;
    blue?: ChannelInput;
    generateMipMaps?: boolean;
    green?: ChannelInput;
    outputSize?: TextureSize;
    red: ChannelInput;
    sharedSampling?: boolean;
}
Index
alpha?: ChannelInput

Configuration for alpha output channel (optional, defaults to 1)

Configuration for blue output channel (optional, defaults to 0)

generateMipMaps?: boolean

Whether to generate mipmaps for the output texture

green?: ChannelInput

Configuration for green output channel (optional, defaults to 0)

outputSize?: TextureSize

Output texture size. If not specified, uses the largest input texture size

Configuration for red output channel

sharedSampling?: boolean

Whether the output texture is sampled as a single texture with one set of sampling parameters. When true, every input texture must use the same UV set as the first input texture (inputs on other UV sets are replaced by a constant 1.0 and a warning is logged), the output takes its UV set and wrap modes from the first input texture, and input UV transforms are either propagated (when they all match) or baked into the output. When false (default), each output channel is a raw copy of its input texels, so channels can be referenced separately with their own sampling parameters. The output copies the UV set, wrap modes and UV transform of the input textures only when they all agree; otherwise it keeps default sampling parameters.