Instance Property

focalBlurSampleCount

The number of pixel samples SceneKit uses to create depth-of-field blur effects.

Declaration

@property(nonatomic) NSInteger focalBlurSampleCount;

Discussion

When the wantsDepthOfField setting is enabled, SceneKit renders depth-of-field blur (also called bokeh) effects using a blur filter that samples multiple points in the image. Sampling a larger number of points produces a higher quality visual effect at a higher performance cost, and vice versa. The default sample count is 25.

See Also

Adding Depth-of-Field Effects

wantsDepthOfField

A Boolean value that determines whether SceneKit renders depth-of-field blur effects for the camera.

focusDistance

The distance from the camera at which objects appear in sharp focus. Animatable.

fStop

The physical camera aperture simulated by SceneKit for depth-of-field effects. Animatable.

apertureBladeCount

The number of physical camera aperture blades simulated by SceneKit for depth-of-field effects.