---
title: opticalVignetting
framework: modelio
role: symbol
role_heading: Instance Property
path: modelio/mdlcamera/opticalvignetting
---

# opticalVignetting

The amount of radial light attenuation around the edges of an image rendered using the camera.

## Declaration

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

## Discussion

Discussion Optical vignetting occurs to some degree in all lenses. It results from light at the edge of an image being blocked as it travels past the lens hood and the internal lens apertures. It is more prevalent with wide apertures. A value of 0.0 (the default) indicates no optical vignetting, and a value of 1.0 indicates that vignetting affects all locations in the image according to radial distance. Optical vignetting also occurs in head-mounted displays, and the value here can be used as an intended amount of vignetting to apply to an image.

## See Also

### Modeling a Physical Lens

- [barrelDistortion](modelio/mdlcamera/barreldistortion.md)
- [fisheyeDistortion](modelio/mdlcamera/fisheyedistortion.md)
- [chromaticAberration](modelio/mdlcamera/chromaticaberration.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)
