
EffectNew
Glass shards
Glass bursting out of a break and glinting as it falls: a window blown in by a blast or a loud enough sound.
- Version
- 1.0.0
- Added
- 23 October 2026
- Films
- Not used in a film yet
Parameters
| Name | Type | Default | Range | What it does |
|---|---|---|---|---|
| start | number | 5 | 0 to 60 s | seconds into the shot when the glass breaks; the shards fly and fall from then |
| origin | vec3 | 3, 2, 2 | -1000 to 1000 | where the glass breaks [along, inland, height] metres |
| amount (Can change over time) | number | 0.7 | 0 to 1 | how much glass flies: 0 none, 1 a whole windowCan change over time |
| force (Can change over time) | number | 8 | 1 to 20 m/s | how fast the shards leave the break; a loud enough sound or a blast gives 8 and moreCan change over time |
| decay | number | 2.5 | 0.3 to 8 s | how many seconds the burst takes to die away |
| tint | color | #d4ecf7 | – | the colour of the shards: pale blue-green glass |
| glintTint | color | #ffffff | – | the colour of the glints where a shard catches the light |
| strength (Can change over time) | number | 1 | 0.1 to 1.5 | how bright the shards are against the pictureCan change over time |
| camera | vec2 | 3, -18 | -600 to 600 | where the camera stands [along, inland] metres; the effect gathers ahead of it |
| facing | number | 20 | 0 to 360 deg | compass bearing the camera faces: 20 is the street looking at home, 210 out to sea |
| level (Can change over time) | number | 0 | -20 to 60 m | height of the ground or water the effect lies on, over today's sea; follow the sea as it risesCan change over time |
| seed | integer | 60 | 0 to 99 | which random pattern the particles fall in |
Use it in a film
film.js
elements: { 'glass-shards': { start: 5, origin: [3, 2, 2] } }Use it from your agent
Ask your agent to put it in a film. It finds the element by name.