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.
Set a color which will be seen in the distance on the horizon of the water. The distance variable controls from what distance this color becomes visible.
Set a shore color. This color will be shown at the intersection between the water and objects in the water. You can set the color, depth and strength of the effect.
The water fade slider controls how smooth the transition is between the shore color and the water color. The shore blend slider controls how much of the color is shown right next to the shore.
Set a color that will be shown on the top of the waves.
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.
You can set a wave mask so surface foam will only appear on the top of the waves.
When the steepness of your waves is 0, the wave mask will not work and you should leave it disabled.
Control the color, scale, direction and speed of the primary surface foam. The primary foam will be chosen from the (R)ed channel of the foam texture. This allows you to pack different foam textures into a single texture. You can use the following tool for this.
The direction slider is a slider from 0 to 1 and controls a rotation between 0° and 360°.
Control the color, scale, direction and speed of the secondary surface foam. The secondary foam will be determined from the (G)reen channel of the foam texture. This allows you to pack different foam textures into a single texture. You can use the following tool for this.
The direction slider is a slider from 0 to 1 and controls a rotation between 0° and 360°. You can also set an offset so the secondary foam is shifted relative to the primary foam.
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.
You can set the depth and color of the intersection effects.
The color blend slider controls how the intersection foam color blends with the water color. The color fade slider controls how much the intersection foam fades in opacity towards the water.
Set a texture for the intersection foam. You can use the cutoff value to control how much foam will be shown. The distortion slider will distort the foam. The primary foam will be determined from the (R)ed channel of the foam texture. This allows you to pack different foam textures into a single texture.
For directional foam you can set the scale, direction and speed of the effect.
For shore movement you can set the speed, width and frequency of the effect. The speed can be positive or negative and determines if the foam should move away from or towards the shore.
The breakup settings will add regions to the foam where the foam is not present. You can control the scale and strength of this effect.
Please not that the shore foam movement effect is still experimental.
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.
There are two sliders that will determine the parallax projection of the surface foam and intersection foam.
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.
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.
Control the normals of the surface.
You can add refraction to the water surface. This refraction will be synced with the normal map and so the scale and speed of the refraction can be set in the normals section.
The shader will work correctly with fog.
Waves
Control the visual characteristics of the waves.
Control the directions of the 4 waves that are used.
The direction slider is a slider from 0 to 1 and controls a rotation between 0° and 360°.
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