Wayshaper Docs
View all packages

Integration

Render pipelines

Compare road and river features across URP, HDRP and Built-in, apply the URP river settings, and drive global wetness.

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

The Wayshaper/Road and Wayshaper/River shaders each contain a Universal, a High Definition and a Built-in version. Unity picks the right one, so the same materials work in every pipeline.

UniversalHigh DefinitionBuilt-in
Roads: lit surface, normal and mask maps, edge wear, variation, wetnessYesYesYes
Roads: shadows cast and receivedYesYesYes
Rivers: flowing ripples, foam, depth colour, soft shoreYesYesYes
Rivers: shadows receivedYesYesFrom the sun. See below
Rivers: refractionWith the Opaque TextureNoYes, through a grab pass
Rivers: depth from the sceneWith the Depth TextureYesYes, turned on automatically
Samples: terrain grassYesNoYes

Universal Render Pipeline

Rivers need three settings:

SettingWhereValue
Depth TextureURP assetOn
Opaque TextureURP assetOn
Depth Texture ModeThe URP asset's default rendererAfter Opaques or Force Prepass

Unity sets Depth Texture Mode to After Transparents in new renderers. That copies the depth after the water is drawn, so the water cannot read the river bed and its depth colour and shore fade look wrong. The River inspector warns about each of these settings, and Fix URP Settings corrects them in the active URP asset and its default renderer. If you use other URP assets for other quality levels, or a camera with its own renderer, set them there too.

Without the depth texture the river uses the depth stored in its mesh, which ignores objects under the water.

High Definition Render Pipeline

Rivers render as transparent surfaces with HDRP lighting, shadows and fog. This shader has no refraction in HDRP. The samples set the sun to a physical brightness when they run in HDRP.

HDRP does not support terrain grass made from textures and draws it as plain quads, so the samples turn it off in HDRP. Use instanced detail meshes for terrain grass in HDRP.

Built-in Render Pipeline

While a scene has a river, Wayshaper turns on the depth texture of every camera that renders it. Rivers refract through a grab pass.

Unity gives transparent surfaces no shadows in this pipeline, so Wayshaper copies the sun's screen-space shadows for the water. They are the shadows on the ground just below the water, so they sit slightly off the surface in deep rivers. They need a directional light with shadows on a platform that uses screen-space shadows, and single-pass instanced VR does not show them. Where they are not available, the water is lit without shadows.

Unity uses gamma-space light intensity in this pipeline unless linear intensity is turned on (GraphicsSettings.lightsUseLinearIntensity), so the same sun value is much brighter than in URP and can wash out foam. The samples correct their sun for this.

Wet weather

Set the global wetness from a script to darken roads and fill puddles everywhere at once:

csharp
Shader.SetGlobalFloat("_WayshaperWetness", 0.8f);

Each road material also has its own Wetness slider. The higher of the two applies. Only materials with Receive Global Wetness on follow the global value. It is on for new materials and for the road materials Wayshaper ships, so turn it off on props that use the road shader but should stay dry, such as walls or rocks.

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