Bloom

Classes

Bloom : NativeComponent

This component adds a bloom (glow) post-processing effect.

Bloom simulates the visual perception of bright areas by making them glow outwards. It works by extracting highlights from the rendered frame above the provided threshold, blurring them across multiple mip levels, and adding the result back on top of the image.

To use this component, add the following line to your project file:

require engine.core_components.bloom_component // or require engine.core

Usage example:

let renderSettings = create_render_settings()
get_component(renderSettings) $(var bloom : Bloom?) {
    bloom.active = true
    bloom.intensity = 0.8
}
Properties:

Bloom.active: bool
Bloom.active =(value: bool)

Active flag. Allows for toggling bloom on and off without removing the component.

Arguments:
  • value : bool

Bloom.threshold: float
Bloom.threshold =(value: float)

Luminance threshold for bloom. Pixels below this value do not contribute to bloom.

Arguments:
  • value : float

Bloom.scatter: float
Bloom.scatter =(value: float)

Bloom halation scatter factor.

Arguments:
  • value : float

Bloom.intensity: float
Bloom.intensity =(value: float)

Bloom intensity multiplier.

Arguments:
  • value : float

Bloom.tint: float3
Bloom.tint =(value: float3)

Color tint of the bloom halation. Strengthens the effect per channel.

Arguments:
  • value : float3