Skip to content
🎉 Angular Three v4 is here! Read the announcement

NgtpChromaticAberration

Chromatic aberration simulates the color fringing that occurs in real camera lenses, where different wavelengths of light are focused at slightly different points.

import { NgtpEffectComposer, NgtpChromaticAberration } from 'angular-three-postprocessing';
@Component({
template: `
<ngtp-effect-composer>
<ngtp-chromatic-aberration [options]="{ offset: [0.002, 0.002] }" />
</ngtp-effect-composer>
`,
imports: [NgtpEffectComposer, NgtpChromaticAberration],
})
export class SceneGraph {}
PropertyTypeDefaultDescription
offset[number, number][0.001, 0.001]Color channel offset (x, y)
radialModulationbooleanfalseApply radial modulation
modulationOffsetnumber0.15Modulation offset
<ngtp-effect-composer>
<ngtp-chromatic-aberration [options]="{
offset: [0.001, 0.001],
radialModulation: true,
modulationOffset: 0.5
}" />
</ngtp-effect-composer>