Bloom effect by ‘dual blurring’.
Supports transparency.
Exposed the internal blur pass for using standalone.
import { DualBloomPass, DualBlurPass } from 'omega/dist/DualBloom.js'
DualBloomPass
const bloom = new DualBloomPass({
maxDuals: 8, // see DualBlurPass.maxDuals
blurriness: 0.5, // [0..1]; maxDuals related.
threshold: 0.5, // apply bloom if luma > threshold
intensity: 0.5, // bloom intensity
})
bloom.maxDuals // readonly
bloom.blurriness
bloom.threshold
bloom.intensity
DualBlurPass
const blur = new DualBlurPass({
maxDuals: 8, // max. duals (downsampling+upsampling)
duals: 4 // desired duals count; [0..maxDuals]
})
blur.maxDuals // readonly
blur.duals