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.
Properties
Section titled “Properties”The props the runtime declares for this component, with their defaults and accepted ranges.
| Prop | Default | Range |
|---|---|---|
intensity |
0.6 |
0 ≤ x ≤ 5 |
luminance |
0.025 |
0 ≤ x ≤ 1 |
luminance |
0.85 |
0 ≤ x ≤ 10 |
mipmapBlur |
true |
Live example
Section titled “Live example”Run it in the browser, read its scripts, and download it as an XR Creator project.
Live example
Add a glow and a vignetteYour first effect: a script adds Bloom and Vignette to the main camera, only when they are missing, so bright objects glow and the edges darken.
Look at the glowing shapes and the darker corners. Drag to orbit the camera, scroll to zoom.
From a script
Section titled “From a script”#pragma lifecycle(startup)
function startup() { const component = self.parent.getComponent(BloomEffectComponent); if (component) log(component.props);}