
EffectNew
Floating debris
Planks, bottles and branches drifting on flood water at the water's height, carried along by the current and wandering on the waves.
- Version
- 1.0.0
- Added
- 23 October 2026
- Films
- Not used in a film yet
Parameters
| Name | Type | Default | Range | What it does |
|---|---|---|---|---|
| level (Can change over time) | number | 0.8 | -20 to 60 m | height of the water the debris floats on, over the ground or today's sea; give it the film's flood levelCan change over time |
| amount (Can change over time) | number | 0.5 | 0 to 1 | how much flotsam is on the water: 0 none, 1 a crowded floodCan change over time |
| current (Can change over time) | number | 1.5 | 0 to 6 m/s | how fast the water carries it; a flooded street runs at 1 to 3Can change over time |
| currentToward | number | 120 | 0 to 360 deg | compass bearing the water flows toward: 120 along the shore, 30 inland, 210 out to sea |
| waves (Can change over time) | number | 0.3 | 0 to 3 m | wave height; the pieces wander more on bigger waves, and sit higherCan change over time |
| planks | number | 0.8 | 0 to 1 | how many planks and boards float; 0 none |
| bottles | number | 0.5 | 0 to 1 | how many bottles, buckets and small litter float; 0 none |
| branches | number | 0.6 | 0 to 1 | how many branches and logs float; 0 none |
| plankTint | color | #8a6b45 | – | the colour of the planks |
| litterTint | color | #cfe0e6 | – | the colour of bottles and litter: pale blue-white, or any plastic colour |
| branchTint | color | #4a3b2c | – | the colour of the branches |
| strength (Can change over time) | number | 1 | 0.1 to 1.5 | how visible the debris is against the waterCan 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 |
| reach | number | 70 | 20 to 200 m | how far ahead debris floats |
| seed | integer | 17 | 0 to 99 | which random pattern the particles fall in |
Use it in a film
film.js
elements: { 'floating-debris': { level: 0.8, amount: 0.5 } }Use it from your agent
Ask your agent to put it in a film. It finds the element by name.