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
Properties
Optionalalpha Mode
camera
Camera used to read minZ/maxZ when the depth is normalized.
Optionalclear
Clear the target before drawing. Set false when several viewport passes share a target.
Optionaldepth Not Normalized
When true the depth texture stores camera-space depth (0..maxZ) rather
than normalized [0,1] depth, skipping the cameraMinMaxZ reconstruction.
depth Texture
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.
Optionalfocal Length
Focal length of the camera in scene units / 1000. Default 50.
Optionalfocus Distance
Distance from the camera to focus on, in scene units / 1000. Default 2000.
Optionalf Stop
F-Stop of the camera. Aperture diameter = lensSize / fStop. Default 1.4.
Optionallens Size
Max lens size in scene units / 1000 (e.g. mm). Standard cameras are 50mm. Default 50.
Configuration for
createCircleOfConfusionPostProcessTask.Models Babylon.js's
FrameGraphCircleOfConfusionTask+ThinCircleOfConfusionPostProcess.