bloom
Spreads the picture's highlights into a soft haze. For a halo around a title or a shape, use glow.
tsx
import { Clip, Composition, Track } from "@uberscene/kit";
// bloom: Spreads the picture's highlights into a soft haze. For a halo around a title or a shape, use glow.
export default function Video() {
return (
<Composition fps={30} width={640} height={360}>
<Track id="main">
<Clip
id="shot"
src="asset:redCup"
in={18}
out={21}
fit="cover"
effects={[
{
type: "bloom",
threshold: 0.7,
radius: 14,
intensity: [
{ at: 0.5, value: 0, easing: "easeInOut" },
{ at: 1.5, value: 1.6 },
],
},
]}
/>
</Track>
</Composition>
);
}The coffee footage is Pixabay videos 209419, 209424, 46989 and 251, under the Pixabay Content License. The maker of the machine in the red cup shot has nothing to do with this project.
Params
Drawn as a shader.
| param | type | default | description |
|---|---|---|---|
threshold | number (0..1) | 0.6 | The brightness the bloom starts from, 0 to 1: only what is brighter spreads its light. |
radius | number (0..200) | 12 | How far the light spreads, in pixels: the blur's standard deviation. |
intensity | number (0..4) | 1 | How strong the bloom is, as a multiplier; 0 leaves the picture as it was. |