Wayshaper Docs
View all packages

Building paths

Rivers

Set up the River component, water level, flow speed, tributaries, river profiles, the water material and floating objects.

Wayshaper 26.12.0Unity 6000.0+URP · HDRP · Built-in

The River component

Add a river with GameObject > Wayshaper > River, or add the Wayshaper/River component.

TabWhat it holds
RiverProfile, elevation mode, Reverse Flow and the river this one flows into
KnotsWidth, depth and speed for each knot
FlowThe length, drop and top speed of the river, with flow arrows in the Scene view
TerrainWhether the river shapes the terrain, its priority and a rebuild button

How the water finds its level

In Follow Terrain mode the surface sits Surface Drop metres below the lowest ground across the channel, is smoothed over Surface Smoothing metres, and never climbs downstream when Enforce Downhill is on. In Follow Spline mode the surface follows the knot heights, for canals, weirs and rivers above the terrain.

Flow speed

The speed starts at the profile's Flow Speed and changes with the ground:

  • Steeper water flows faster, by Slope Speed Boost.
  • Narrow water flows faster and wide water slower, so the same volume passes.
  • The speed knot value scales the speed by hand.
  • Water near the banks is slower by Bank Drag.

Between Calm Speed and Rapids Speed the water gets rougher, which raises foam in the shader and turbulence in the flow data.

Tributaries

Set Flows Into on a river, or choose Add Tributary from the menu in the main river's inspector header. The tributary's mouth blends into the main river's surface, its mesh fades out under the main water, and its bed is carved after the main river so it never fills the main channel.

Profiles

SectionSettings
ChannelWidth, depth, bed flatness, bank width and lift, shore overlap, cross segments, start and end tapers. A tributary ignores its end taper, because it ends in another river
FlowFlow speed, slope boost, maximum speed, bank drag, calm and rapids speeds, surface drop and smoothing, Enforce Downhill
WaterThe water material and shadows
TerrainHow the river shapes the bed and paints the banks. See Terrain shaping
AdvancedChunk length, colliders and curve sampling

The water material

The river shader reads the flow from the mesh, so ripples and foam travel with the water and speed up in rapids.

GroupSettings
ColourShallow and deep colour, the depth for the deep colour, shallow opacity, shore softness
RipplesRipple normals, size and strength, swell size and strength, flow speed scale and cycle
SurfaceSmoothness, roughness in rapids, refraction
FoamFoam texture, colour and size, shore foam, rapids foam, sharpness

Wayshaper includes River Water, Mountain Creek and Muddy River materials.

Floating objects

Add Wayshaper/River Floater to a Rigidbody and it floats on any Wayshaper river and drifts with the current. Float Points set where buoyancy pushes, so a boat with four points rocks naturally. See the Scripting API to read the flow yourself.

Still stuck?

Bring the scene with you.

Include the Wayshaper version, Unity and render-pipeline versions, the road or river profile involved, any inspector warnings, relevant logs, and a minimal scene with its Terrain Originals folder.

Email supportJoin Discord

Wayshaper 26.12.0

Search documentation