Skip to content
🎉 Angular Three v4 is here! Read the announcement

NgtpBloom

The bloom effect creates a glow around bright areas of the scene, simulating how bright lights appear to bleed into surrounding areas.

import { NgtpEffectComposer, NgtpBloom } from 'angular-three-postprocessing';
@Component({
template: `
<ngtp-effect-composer>
<ngtp-bloom [options]="{
luminanceThreshold: 0.9,
luminanceSmoothing: 0.025,
intensity: 0.5
}" />
</ngtp-effect-composer>
`,
imports: [NgtpEffectComposer, NgtpBloom],
})
export class SceneGraph {}
PropertyTypeDefaultDescription
intensitynumber1Bloom intensity
luminanceThresholdnumber0.9Luminance threshold for bloom
luminanceSmoothingnumber0.025Smoothness of luminance threshold
mipmapBlurbooleanfalseUse mipmap blur for better quality
radiusnumber0.85Blur radius
levelsnumberundefinedNumber of blur levels

Bloom works great with emissive materials:

<ngt-mesh>
<ngt-sphere-geometry />
<ngt-mesh-standard-material
color="#ff0000"
[emissive]="'#ff0000'"
[emissiveIntensity]="2"
/>
</ngt-mesh>
<ngtp-effect-composer>
<ngtp-bloom [options]="{ luminanceThreshold: 0.5, intensity: 1.5 }" />
</ngtp-effect-composer>