---
title: contrast
framework: scenekit
role: symbol
role_heading: Instance Property
path: scenekit/scncamera/contrast
---

# contrast

An adjustment factor to apply to the overall visual contrast of the rendered scene.

## Declaration

```swift
var contrast: CGFloat { get set }
```

## Discussion

Discussion A value of 0.0 (the default) leaves the rendered scene unchanged. Positive values increase contrast between bright and dark areas, and negative values reduce contrast, shifting the rendered scene towards a uniform gray. To enable this behavior, you must first enable the wantsHDR setting.

## See Also

### Adjusting Rendered Colors

- [saturation](scenekit/scncamera/saturation.md)
- [colorGrading](scenekit/scncamera/colorgrading.md)
