Cartoon Water Shader by  

Adam Homoki 

 Cartoon Water Shader is an easy to use highly stylized water material, and river tool with many features.

Demo scenes also included!


Features

Features:


• Gerstner Waves

• Buoyancy

• Stencil Mask (no water inside of the boat)

• Caustic and wet sand effect

• Spline based river editor

• Wave resistance around objects in the river

• Foam around intersecting objects

• Surface Highlights

• Water Depth with custom colors

• Refraction

• Waterfall

• Light Angle based fake SSS

• Multi Colored Fog Post Process

• Highly customizable 


Video: https://youtu.be/jUQEa73aHG0

How to use

You should turn on Mesh distance field in Project settings\Engine\Rendering\Lighting\Generate Mesh Distance Field to enjoy the wave resistance around objects in the river and foam intersections. Your Engine Scalability Shadow's setting also has to be higher than medium! Your water will be white if you not do this!


You should change the Custom Depth-Stencil pass value to Enagled with Stencil in Project settings\Engine\Rendering\Postprocessing. If you not do this your boat will be filled with water!


For River drop the BP_CartoonWater_RiverTool into your level and scale to desired size, select a spline point hold ALT and move simultaneously to add a new spline point


For Ocean drop the BP_CartoonWater_Ocean into your level and scale to desired size


For Lakes drop the BP_CartoonWater_Lake into your level and scale to desired size


Tutorial: https://youtu.be/uU9BoD3sutY