Shader Properties

How to use this asset.

This asset comes with a useful custom material editor. The material properties are divided into sections so you can easily change the look of the water. To use the custom material editor, be sure to add the StylizedWaterForURP component to your water.

Colors and Transparency

Control a color gradient based on the water's depth. The depth slider controls how deep the water should be.

Instead of using a shallow and a deep water color, you can also use a color gradient which supports up to 8 colors.

The transparency of the water is set through the alpha value of the color fields.

Surface Foam

Set a texture for the surface foam. You can use the cutoff value to control how much foam will be shown. The distortion slider will distort the foam. The color blend slider will control how the surface foam color blends with the water color. I usually leave this at 1 because it looks nicer.

Intersection Effects

You can switch between directional or shore movement. Please not that the shore movement feature is experimental.

With directional movement, the intersection foam will just move in a single direction. With shore movement, the intersection foam will move towards or away from the shore.

Foam Shadows

In order to have foam shadows, either surface foam or intersection effects need to be enabled.

You can set the strength of the shadows as well of the depth. The depth slider will control how deep shadows should be rendered.

Caustics

Please see the separate caustics page for more information.

Planar Reflections

You can control the strength and the fresnel effect of the planar reflections.

For more information, look at the planar reflections page.

Surface and Lighting

You can enable or disable lighting. You can control the specular and diffuse colors and the smoothness of the surface.

The hardness slider will make the lighting hard to make it appear more cartoon-like.

Waves

Control the visual characteristics of the waves.

Underwater

You can set the color, transparency and refraction of the water surface when looked at from below (underwater).

Additional Settings

Set the UV space to world or local. You can also choose to hide inspector components like the Mesh Renderer and Mesh Filter

Last updated