DepthOfFieldOptions
Options to control Depth of Field (DoF) effect in the scene.
cocScale can be used to set the depth of field blur independently of the camera aperture, e.g., for artistic reasons. This can be achieved by setting: cocScale = cameraAperture / desiredDoFAperture.
Properties
Number of rings used by the gather kernels for background. Default: 0.
Circle-of-confusion aspect ratio, scaling the bokeh horizontally against vertically. 1.0 gives circular bokeh; other values give anamorphic ovals. Default: 1.0.
Number of rings used by the gather kernels for fast tiles (regions with similar CoC). Default: 0.
Filter to use for filling gaps in the kernel. Default: MEDIAN.
Number of rings used by the gather kernels for foreground. The number of rings affects quality and performance. The number of samples per pixel is (ringCount * 2 - 1)². Examples: 3 rings = 25 (5x5), 4 rings = 49 (7x7), 5 rings = 81 (9x9), 17 rings = 1089 (33x33). A value of 0 means default (5 on desktop, 3 on mobile). Default: 0.
Maximum aperture diameter in meters (zero to disable rotation). Default: 0.01.
Maximum circle-of-confusion in pixels for the background, must be in 0, 32 range. A value of 0 means default (32 on desktop, 24 on mobile). Default: 0.
Maximum circle-of-confusion in pixels for the foreground, must be in 0, 32 range. A value of 0 means default (32 on desktop, 24 on mobile). Default: 0.
Perform DoF processing at native resolution. Default: false.