Building paths
Rivers
Set up the River component, water level, flow speed, tributaries, river profiles, the water material and floating objects.
The River component
Add a river with GameObject > Wayshaper > River, or add the Wayshaper/River component.
| Tab | What it holds |
|---|---|
| River | Profile, elevation mode, Reverse Flow and the river this one flows into |
| Knots | Width, depth and speed for each knot |
| Flow | The length, drop and top speed of the river, with flow arrows in the Scene view |
| Terrain | Whether 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
| Section | Settings |
|---|---|
| Channel | Width, 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 |
| Flow | Flow speed, slope boost, maximum speed, bank drag, calm and rapids speeds, surface drop and smoothing, Enforce Downhill |
| Water | The water material and shadows |
| Terrain | How the river shapes the bed and paints the banks. See Terrain shaping |
| Advanced | Chunk 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.
| Group | Settings |
|---|---|
| Colour | Shallow and deep colour, the depth for the deep colour, shallow opacity, shore softness |
| Ripples | Ripple normals, size and strength, swell size and strength, flow speed scale and cycle |
| Surface | Smoothness, roughness in rapids, refraction |
| Foam | Foam 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.