API

Interface ChromaticAberrationPostProcessTaskConfig

Configuration for createChromaticAberrationPostProcessTask: shift aberrationAmount, direction, radialIntensity, and centerPosition.

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

Hierarchy

  • Omit<PostProcessTaskConfig, "_shader">
    • ChromaticAberrationPostProcessTaskConfig
Index
aberrationAmount?: number
centerPosition?: PostProcessVec2
clear?: boolean

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

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