API

Interface GenerateMipMapsTaskConfig<T>

Inputs matching Babylon.js FrameGraphGenerateMipMapsTask, using concrete textures.

interface GenerateMipMapsTaskConfig<
    T extends RenderTarget
    | Texture2D = RenderTarget | Texture2D,
> {
    filter?: MipmapFilter;
    name?: string;
    targetTexture: T;
}

Type Parameters

Index
filter?: MipmapFilter

Downsampling kernel. Default: the 2×2 box, like Babylon.js. tentMipmapFilter keeps levels read between texels or under camera motion free of grid artifacts and shimmer (e.g. rough screen-space reflections).

name?: string
targetTexture: T