Skip to content

Bloom Effect

Updated

Makes bright parts of the image glow.

Type
comp-bloom-effect
Script class
BloomEffectComponent
Per entity
One
Version
1.3.0

Read about it in Light and lens effects: what it does, how to use it from a script, and examples.

The props the runtime declares for this component, with their defaults and accepted ranges.

Prop Default Range
intensity 0.6 0 ≤ x ≤ 5
luminanceSmoothing 0.025 0 ≤ x ≤ 1
luminanceThreshold 0.85 0 ≤ x ≤ 10
mipmapBlur true

Run it in the browser, read its scripts, and download it as an XR Creator project.

#pragma lifecycle(startup)
function startup() {
const component = self.parent.getComponent(BloomEffectComponent);
if (component) log(component.props);
}