---
title: cameraGrain
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/realityviewrenderingeffects/cameragrain
---

# cameraGrain

Enables or disables an image noise effect for virtual content.

## Declaration

```swift
var cameraGrain: RealityViewRenderingEffectMode
```

## Discussion

Discussion Images from a camera may contain a small amount of noise, called camera grain, that increases as the available light decreases. Virtual objects rendered without noise and placed into an otherwise grainy image look out of place. You can use RealityKit to add noise to the rendered output to match noise in the camera feed.  |   |  Applying this effect involves a low, constant GPU cost. To enable or disable camera grain, set the cameraGrain property of the view’s renderingEffects. When deciding whether to use any effect, be sure to consider your app’s CPU and GPU utilization, as described in Improving the Performance of a RealityKit App. important: This rendering effect is unavailable on macOS.
