
EffectNew
Fog bank
Low fog rolling over the ground and the water: soft drifting patches hugging the surface, and a thicker town haze that follows a 0 to 1 density.
- Version
- 1.0.0
- Added
- 23 October 2026
- Films
- Not used in a film yet
Parameters
| Name | Type | Default | Range | What it does |
|---|---|---|---|---|
| density (Can change over time) | number | 0.5 | 0 to 1 | how thick the fog is: 0 clear, 0.3 mist, 0.6 fog, 1 dense; also sets the town's hazeCan change over time |
| height (Can change over time) | number | 8 | 1 to 60 m | how deep the layer lies over the ground or water; most of it is in the lowest thirdCan change over time |
| drift (Can change over time) | number | 1 | 0 to 10 m/s | how fast the fog rolls along: 0.5 is still dawn air, 3 a fresh sea breezeCan change over time |
| driftToward | number | 30 | 0 to 360 deg | compass bearing the fog rolls toward: 30 inland off the sea, 210 out to sea |
| puffSize | number | 7 | 2 to 16 m | how wide each soft patch is; bigger reads as smooth banks, smaller as wisps |
| patches | integer | 80 | 20 to 110 | how many patches are drawn at full density; fewer patches show as separate wisps |
| tint | color | #d6dbe0 | – | the colour of the fog |
| strength (Can change over time) | number | 1 | 0.1 to 1.5 | how opaque the patches are, apart from the haze; 1 is a soft veilCan change over time |
| camera | vec2 | 3, -18 | -600 to 600 | where the camera stands [along, inland] metres; the fog 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 | 140 | 60 to 400 m | how far out the fog bank stands; the white wall sits at the far end, so set it to the distance fog should hide |
| level (Can change over time) | number | 0 | -20 to 60 m | height of the ground or water the fog lies on over today's sea; follow the sea as it risesCan change over time |
| hazeRaise | number | 0.6 | 0 to 2 | how far the density thickens the town's air, once at a shot's start; 0 leaves the haze alone |
| seed | integer | 5 | 0 to 99 | which random pattern the patches lie in |
| seaMist | number | 0.5 | 0 to 1 | how much of the density the town's own mist over open water follows; 0 leaves the sea clear |
Use it in a film
film.js
elements: { 'fog-bank': { density: 0.5, height: 8 } }Use it from your agent
Ask your agent to put it in a film. It finds the element by name.