bloom¶
type: "bloom"
Glow around bright screen areas.
Fields¶
Every screen effect also accepts
screen_layerand the shared definition fields (duration,easing,loop,persistent,fade_ticks,sound).
| Field | Type | Default | Meaning |
|---|---|---|---|
intensity |
float | 0.6 (fades to 0) | Glow strength |
threshold |
float | 0.7 | Luminance above which pixels glow (0..1) |
radius |
float | 3 | Glow spread in pixels |
Example¶
Code¶
Its datapack definition:
{
"type": "bloom",
"duration": 160,
"easing": "ease_in_out_cubic",
"persistent": true,
"loop": true,
"fade_ticks": 12,
"params": {
"intensity": {
"keyframes": [
{
"time": 0,
"value": 0.1
},
{
"time": 80,
"value": 0.85
},
{
"time": 160,
"value": 0.1
}
]
},
"threshold": {
"keyframes": [
{
"time": 0,
"value": 0.75
},
{
"time": 80,
"value": 0.55
},
{
"time": 160,
"value": 0.75
}
]
},
"radius": 3.0
}
}