Bloom
Represents a PostEffect specifically designed for the Bloom.
| Type | Name | Interface Description |
|---|---|---|
| Variables | anamorphicRatio: number | • Function: Gets or sets the bloom anamorphic ratio. Stretches the glow horizontally or vertically. Range: [-1, 1]. |
| Variables | clamp: number | • Function: Gets or sets the bloom clamp value. Limits the maximum brightness of the glow. Range: [0, 65535]. |
| Variables | color: Color | • Function: Gets or sets the bloom effect color, used to tint the glow. |
| Variables | diffuse: number | • Function: Gets or sets the bloom diffuse factor. Controls the blur radius of the glow. Range: [0, 10]. |
| Variables | fastMode: boolean | • Function: Gets whether fast mode is enabled. Improves performance at the cost of quality. |
| Variables | intensity: number | • Function: Gets or sets the bloom effect intensity. Higher values make the glow stronger. 1–25 range typical. |
| Variables | softKnee: number | • Function: Gets or sets the bloom soft knee value. Smooths the transition around the threshold. Range: [0, 1]. |
| Variables | threshold: number | • Function: Gets or sets the bloom threshold. Pixels brighter than this value will trigger the glow. Range: [0, 10]. |
| Functions | constructor() |
Examples
constructor()
let obj = new APJS.Bloom();
Use Case
@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use Bloom here
}
onUpdate(deltaTime: number) {
}
}