Contents

focalBlurSampleCount

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

Declaration

var focalBlurSampleCount: Int { get set }

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