Skip to content

Bloom

Bloom is an effect that simulates the way that bright objects in the real world can create a "glow" effect around themselves. The effect works by adding a blurred and brightened version of the scene to the final render. This can help to create a more realistic and visually appealing scene.

Usage

vue
<script setup lang="ts">
import { EffectComposer, Bloom } from '@tresjs/post-processing'
</script>

<template>
  <EffectComposer>
    <Bloom
      :radius="0.85"
      :intensity="4.0"
      :luminance-threshold="0.1"
      :luminance-smoothing="0.3"
      mipmap-blur
    />
  </EffectComposer>
</template>

Props

PropDescriptionDefault
blendFunctionThe blend function of this effect. This prop is not reactive.BlendFunction.SCREEN
intensityThe intensity of the bloom effect.1
kernelSizeThe kernel size.KernelSize.LARGE
luminanceThresholdThe luminance threshold. Raise this value to mask out darker elements in the scene. Range is [0, 1].0.9
luminanceSmoothingControls the smoothness of the luminance threshold. Range is [0, 1].0.025
mipMapBlurEnables mip map blur (UnrealBloom). This prop is not reactive.false

Further Reading

see postprocessing docs