The tree leaves are now swaying in the wind. The "Grasslands - Stylized Nature" pack the trees are from actually already included a wind effect, but I implemented some simple tweaks to make it more to my liking. What do you think?
#GameDev#IndieGameDev

Side by side comparison of tree with two different wind effects. Subtitles: Grasslands original shader - Modified shader The original shader moves vertices back and forth along the wind direction. The modified shader projects the wind direction onto the normal plane for each vertex. The underlying logic is that branches wiggle but don't compress or expand. An assumption is made that branches are largely orthogonal to the overall "surface" of the tree. The technique requires tree models where the normals are aligned with this "tree surface" rather than individual leaves.
Side by side comparison of tree with two different wind effects. Subtitles: Grasslands original shader - Modified shader The original shader moves vertices back and forth along the wind direction. The modified shader projects the wind direction onto the normal plane for each vertex. The underlying logic is that branches wiggle but don't compress or expand. An assumption is made that branches are largely orthogonal to the overall "surface" of the tree. The technique requires tree models where the normals are aligned with this "tree surface" rather than individual leaves.