API

Interface BlurPostProcessTaskConfig

Configuration for createBlurPostProcessTask; direction is the blur axis and kernel the sample-window size in pixels.

interface BlurPostProcessTaskConfig {
    alphaMode?: PostProcessAlphaMode;
    clear?: boolean;
    direction?: PostProcessVec2;
    kernel?: number;
    name?: string;
    sourceSamplingMode?: PostProcessSamplingMode;
    sourceTexture: RenderTarget;
    targetTexture?: RenderTarget | null;
    viewport?: NormalizedViewport | null;
}

Hierarchy

  • Omit<PostProcessTaskConfig, "_shader">
    • BlurPostProcessTaskConfig
Index
clear?: boolean

Clear the target before drawing. Set false when several viewport passes share a target.

direction?: PostProcessVec2
kernel?: number
name?: string
sourceSamplingMode?: PostProcessSamplingMode
sourceTexture: RenderTarget
targetTexture?: RenderTarget | null
viewport?: NormalizedViewport | null