Stylized Water 2 – Dynamic Effects docs

Stylized Water 2 - Dynamic Effects (Extension)

Stylized Water 2 - Dynamic Effects (Extension)
Version: 1.1.0
Review

4.Prefabs #

Pre-made effects can be found in the StylizedWater2/Prefabs/DynamicEffects folder. A few prefabs need some usage clarification, or come with caveats, they are covered here.

Effects will draw on the water, regardless of the object’s Y-position. If you need an effect to stop affecting the water when it is above the water, it must be disabled through gameplay logic.

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.

Yes No Suggest edit
Last updated on October 16, 2023
1 of 3 users found this section helpful
Suggest Edit