Skip to content

Wind

The Wind module pushes its settings to global shader values every frame. Wind is authored in real units: metres, seconds, degrees, and fractions of plant height.

Direction is in degrees, measured the way the wind blows toward: 0° = +X (east), 90° = +Z (north). The header shows it as a compass point, for example 0.24 toward NE. Select the Wind object to see an arrow in the Scene view: solid for the breeze, thin for gusts when they travel a different way.

Still air: strength 0
Still air: strength 0
A breeze: strength 0.18, sway 0.8
Storm: strength 0.6, gusts 1.7

PRESETS

Four buttons, Calm, Breeze, Windy and Storm, write a starting set of breeze and gust values into the current Wind asset. They overwrite those values; Undo reverts them.

BREEZE

A noise field of patches travels along the wind. Blades lean by Strength on average and rock around that lean as the patches pass.

Setting What it does Default Shipped preset
Direction (°) Which way the wind blows. The N / NE / E / SE / S / SW / W / NW buttons below it set it in one click. 45 54
Strength Mean lean, as a fraction of plant height. 0.1 is gentle, 0.5 storm-bent. 0.18 0.237
Sway How far blades rock around the mean lean as breeze patches pass. 0 is a frozen lean. 0.6 0.993
Wave Size (m) Size of a breeze patch. Small shimmers, large gives broad swells. 12 1
Wave Speed (m/s) How fast the breeze patches travel across the field. 3 3
Noise Type (MORE) Noise behind the breeze patches: Perlin, Simplex, Value or Voronoi. Perlin Value
Wave Size 6 m: the same breeze in broad patches

GUSTS

Gusts are fronts of extra push that roll through on a timer: a ragged band passing every Interval seconds. Each blade is hit fast and settles back slowly, so every front leaves a wake of bent grass behind it.

Setting What it does Default Shipped preset
Strength Extra push at the peak of a front, as a fraction of plant height. 0 disables gusts. 0.25 0.5
Interval (s) Seconds between fronts. 6 7
Front Speed (m/s) How fast a front travels. 7 6
Front Width (m) Depth of the gust band: how much field is pushed at once. 8 8
Recover Time (s) How long grass takes to stand back up after a front has passed. Never shorter than the front takes to pass. 2 2
Follow Wind Direction Gusts travel the same way as the breeze. On On
Direction (°) Gust direction, shown when Follow Wind Direction is off. 90 360
Noise Type (MORE) Noise that makes the fronts ragged and varies their strength. Simplex Voronoi
Gusts: strength 1.1, a front every 3.5 s

Changing the wind direction rebuilds every grass patch in the editor, because blade facing is baked from the wind at build time.