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.
| Type | Name | Interface Description |
|---|---|---|
| Variables | fastMode: boolean | • Function: Gets or sets whether fast mode for chromatic aberration is enabled. Fast mode improves performance but reduces accuracy of the effect. |
| Variables | intensity: number | • Function: Gets or sets the chromatic aberration intensity. Controls how strongly the RGB channels are shifted apart. Range: [-10, 10]. |
| Variables | spectralLUT: Texture | null | • Function: Gets or sets the spectral LUT (Lookup Texture) used for chromatic aberration. Defines how RGB channels are sampled and shifted. |
| Functions | constructor() |
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) {
}
}