- Qt 6.5
- Qt Quick 3D
- QML Types
- QtQuick3D.Effects
- ChromaticAberration
- Qt Quick 3D | Commercial or GPLv3

# ChromaticAberration QML Type

A chromatic aberration effect. More...

Import Statement: | import QtQuick3D.Effects 6.5

- List of all members, including inherited members

## Properties

- aberrationAmount : real
- focusDepth : real
- maskTexture : TextureInput

## Detailed Description

Use ExtendedSceneEnvironment, MultiEffect, or user-defined effects via the Effect type instead.

Warning: All pre-made standalone effects in QtQuick3D.Effects are considered deprecated starting with Qt 6.5. Applications are advised to use ExtendedSceneEnvironment or MultiEffect instead, when applicable, or alternatively provide their own custom post-processing effect via the Effect type.

The ChromaticAberration effect simulates an imperfection of optical lenses. 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 angles splitting white light into a spectrum. This is called dispersion.

## Property Documentation

aberrationAmount : real

The strength of the aberration effect. A negative value inverses the effect. The default value is `50`.

focusDepth : real

The distance to the focus plane. The dispersion scales in relation to the distance from this value. The default value is `600`.

maskTexture : TextureInput

A grayscale texture to control the position and strength of the effect. The effect is strongest in white areas, and weakest in black areas. The default is a Texture with source `"maps/white.png"`.