- Qt 3D Studio
- Best Practices
- Chromatic Aberration
- Qt 3D Studio 2.8 Manual

# Chromatic Aberration

In real life, chromatic aberration is an optical phenomenon causing color fringes in high contrast areas. These color fringes are caused by different colors refracting at different angels splitting white light into a spectrum. This is called dispersion.

In the image below, the effect is applied in the right picture.

## Properties

Property | Description
--- | ---
Aberration amount | Amount of aberration. A negative value inverses the effect.
Focus depth | Dispersion scales in relation to the distance from this value.
Effect mask | A grayscale texture to control position and strength of the effect. The effect is strongest in white areas, and weakest in black areas.
Debug dispersion amount | Allows you to see exactly how the effect works.

## Usage

To make it easier to set up this effect, enable Debug dispersion amount. When enabled, the scene view switches to a mode showing the amount of dispersion to be applied. Black objects will disperse less, and white objects will disperse more.