Skip to main content

BokehBlur

Represents a PostEffect specifically designed for the BokehBlur.

TypeNameInterface Description
Variablesdownsample: number

Function: Gets or sets the downsample factor for the bokeh blur effect. Higher values improve performance but reduce quality. Range: [1, 10].

VariablesfastCircle: boolean

Function: Gets whether fast circle approximation mode is enabled.

Variablesiterations: 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].

Variablesshape: BokehBlurShapeType

Function: Gets the shape type for the bokeh blur effect (e.g., hexagon, circle). Determines the appearance of the blur highlights.

Variablessize: 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.

Functionsconstructor()

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) {
}
}
Copyright © 2026 TikTok. All rights reserved.
About TikTokHelp CenterCareersContactLegalTerms of ServicePrivacy PolicyCookies