Stylized Water 3 - Dynamic Effects (Extension)
5.Custom Effects
Creating a custom effects is certainly encouraged, as this will result in visual effects tailored to your specific project.
Core concept: Any renderer component using a material with the “Stylized Water 3/Dynamic Effect” shader will be rendered into the water.
This shader takes an input texture map that may be used to control Displacement and Foam strength. If left blank, the material outputs full strength for both
Color channel | Usage |
---|---|
Red | Displacement |
Green | Foam |
Blue | Normal Strength |
Alpha | Unused |
Note: The shader also reads the mesh’s vertex color channel, and multiplies the strengths with them!
Boat foam edge
Foam can be drawn around the hull of the boat by creating a skirt mesh for it.
Painting the mesh with a Green vertex color ensures that it applies only Foam. The edges here are made Black so that the strength tapers off.