
There are two parts of the shader, the first part of the shader is the large sways, which rotates a mesh back and forth towards a direction.


The second part is the jitter, where the mesh is wiggled around for a more granular random movement. In this case,


Material Function: All of the functionality is under one material function that can be easily used with exposed parameters exposing swaying and jitter amplitude and speed. Other important parameters such as pivot position and vertex color mask is exposed, allowing use depending on the asset, such as meshes that use pivot painters.

Global Parameters: Wind direction, strength, and speed are exposed as global parameters, using a material parameter collection.