Instance Property

cameraGrainIntensity

A value that specifies the amount of grain present in the camera grain texture.

Declaration

var cameraGrainIntensity: Float { get }

Discussion

This property is normalized within the range [0..1], where zero specifies no grain, and one specifies the maximum amount of grain.

When you apply this value to the depth component of the cameraGrainTexture, you select among variations of visual image noise data stored in the Metal texture that conceptually match this level of intensity.

See Also

Enabling Camera Grain

var cameraGrainTexture: MTLTexture?

A tileable Metal texture created by ARKit to match the visual characteristics of the current video stream.