API

Interface CircleOfConfusionPostProcessTaskConfig

Configuration for createCircleOfConfusionPostProcessTask.

Models Babylon.js's FrameGraphCircleOfConfusionTask + ThinCircleOfConfusionPostProcess.

interface CircleOfConfusionPostProcessTaskConfig {
    alphaMode?: PostProcessAlphaMode;
    camera: Camera;
    clear?: boolean;
    depthNotNormalized?: boolean;
    depthTexture: RenderTarget;
    focalLength?: number;
    focusDistance?: number;
    fStop?: number;
    lensSize?: number;
    name?: string;
    sourceSamplingMode?: PostProcessSamplingMode;
    sourceTexture: RenderTarget;
    targetTexture?: RenderTarget | null;
    viewport?: NormalizedViewport | null;
}

Hierarchy

  • Omit<PostProcessTaskConfig, "_shader">
    • CircleOfConfusionPostProcessTaskConfig
Index
camera: Camera

Camera used to read minZ/maxZ when the depth is normalized.

clear?: boolean

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

depthNotNormalized?: boolean

When true the depth texture stores camera-space depth (0..maxZ) rather than normalized [0,1] depth, skipping the cameraMinMaxZ reconstruction.

depthTexture: RenderTarget

Depth texture supplying per-pixel scene depth. With depthNotNormalized it must store camera-space (view) depth (the geometry renderer's VIEW_DEPTH attachment); otherwise it stores normalized [0,1] view depth.

focalLength?: number

Focal length of the camera in scene units / 1000. Default 50.

focusDistance?: number

Distance from the camera to focus on, in scene units / 1000. Default 2000.

fStop?: number

F-Stop of the camera. Aperture diameter = lensSize / fStop. Default 1.4.

lensSize?: number

Max lens size in scene units / 1000 (e.g. mm). Standard cameras are 50mm. Default 50.

name?: string
sourceSamplingMode?: PostProcessSamplingMode
sourceTexture: RenderTarget
targetTexture?: RenderTarget | null
viewport?: NormalizedViewport | null