Stylized Water 2 - Dynamic Effects (Extension)
4.Prefabs
Pre-made effects can be found in the StylizedWater2/Prefabs/DynamicEffects folder.
Only a few prefabs need some usage clarification, or come with caveats, they are covered here.
Shoreline wave
This is a particle system that moves a quad particle forward. Over the lifetime of the particle, the quad mesh’s vertex colors are animated, which in turn controls the Displacement and Surface Foam. You’ll notice a wave first starts to push the surface up, before it starts to draw foam, finally it levels out again and fades out the foam.
This is a rudimentary way of approaching the appearance a breaking beach waves.
Boat Wake
Two different techniques can be chosen: Particle- or Trail-based.
A wake based on Unity’s Trail Renderer component tends to work well for ships that are constantly moving. The Trail Renderer component only updates the geometry when the transform is in motion, which results in the trail often “catching up” when the transform was stationary for a while.
A particle-based wake may work better for your use-case, since particle live and die on an individual basis.