LensFlare
Represents a PostEffect specifically designed for the LensFlare.
| Type | Name | Interface Description |
|---|---|---|
| Variables | intensity: number | • Function: Gets or sets the lens flare intensity. Controls the brightness of the flare effect. Range: [0, 1]. |
| Variables | position: Vector2f | • Function: Gets or sets the lens flare position (X,Y). Defines the screen-space position of the flare source. Vector2f in normalized 0–1 screen coordinates; X: 0–1, left to right. Y: 0–1, bottom to top. |
| Functions | constructor() |
Examples
constructor()
let obj = new APJS.LensFlare();
Use Case
@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use LensFlare here
}
onUpdate(deltaTime: number) {
}
}