Skip to main content

ChromaticAberration

This class implements chromatic aberration post-processing effects, which simulate the optical phenomenon where different wavelengths of light are focused at slightly different points, causing color fringes.

TypeNameInterface Description
VariablesfastMode: boolean

Function: Gets or sets whether fast mode for chromatic aberration is enabled. Fast mode improves performance but reduces accuracy of the effect.

Variablesintensity: number

Function: Gets or sets the chromatic aberration intensity. Controls how strongly the RGB channels are shifted apart. Range: [-10, 10].

VariablesspectralLUT: Texture | null

Function: Gets or sets the spectral LUT (Lookup Texture) used for chromatic aberration. Defines how RGB channels are sampled and shifted.

Functionsconstructor()

Examples

constructor()

let obj = new APJS.ChromaticAberration();

Use Case

@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use ChromaticAberration here
}
onUpdate(deltaTime: number) {
}
}
Copyright © 2026 TikTok. All rights reserved.
About TikTokHelp CenterCareersContactLegalTerms of ServicePrivacy PolicyCookies