---
title: chromaticAberration
framework: modelio
role: symbol
role_heading: Instance Property
path: modelio/mdlcamera/chromaticaberration
---

# chromaticAberration

The amount of radial color shift around the edges of an image rendered using the camera.

## Declaration

```swift
var chromaticAberration: Float { get set }
```

## Discussion

Discussion Chromatic aberration occurs to some degree in all lenses. It results from a lens bringing different wavelengths of light to focus at different places on the image plane. A value of 0.0 (the default) indicates no chromatic aberration, and a value of 1.0 indicates the maximum amount. Chromatic aberration affects all locations in the image according to radial distance. Chromatic aberration also occurs in head-mounted displays, and the value here can be used as an intended amount of chromatic aberration to apply to an image.

## See Also

### Modeling a Physical Lens

- [barrelDistortion](modelio/mdlcamera/barreldistortion.md)
- [fisheyeDistortion](modelio/mdlcamera/fisheyedistortion.md)
- [opticalVignetting](modelio/mdlcamera/opticalvignetting.md)
- [focalLength](modelio/mdlcamera/focallength.md)
- [fStop](modelio/mdlcamera/fstop.md)
- [apertureBladeCount](modelio/mdlcamera/aperturebladecount.md)
- [bokehKernel(withSize:)](modelio/mdlcamera/bokehkernel(withsize:).md)
- [maximumCircleOfConfusion](modelio/mdlcamera/maximumcircleofconfusion.md)
- [focusDistance](modelio/mdlcamera/focusdistance.md)
- [shutterOpenInterval](modelio/mdlcamera/shutteropeninterval.md)
