BokehBlur
Represents a PostEffect specifically designed for the BokehBlur.
| Type | Name | Interface Description |
|---|---|---|
| Variables | downsample: number | • Function: Gets or sets the downsample factor for the bokeh blur effect. Higher values improve performance but reduce quality. Range: [1, 10]. |
| Variables | fastCircle: boolean | • Function: Gets whether fast circle approximation mode is enabled. |
| Variables | iterations: number | • Function: Gets or sets the number of iterations for the bokeh blur effect. Higher values produce smoother results at the cost of performance. Range: [1, 10]. |
| Variables | shape: BokehBlurShapeType | • Function: Gets the shape type for the bokeh blur effect (e.g., hexagon, circle). Determines the appearance of the blur highlights. |
| Variables | size: number | • Function: Gets or sets the size of the bokeh blur effect. Controls the radius of the blur effect. Range: [0, 99999]. Default: 4.0 set in editor. |
| Functions | constructor() |
Examples
constructor()
let obj = new APJS.BokehBlur();
Use Case
@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use BokehBlur here
}
onUpdate(deltaTime: number) {
}
}