Vegetation animation by vertex shader

Hello guys!

I wonder if you know any good shader for animating vegetation. The vegetation are simple sprites planes with four vertices, and I need to animate only the two top vertex to simulate wind behavior.

Thank you in advance… :wink:

Hey there, this is not a solution to the problem, however it’s one of the few working examples of Vertex Displacement (i guess that’s what youre looking for) that i have seen coming past.
Maybe looking into the source you could find a way to employ its functions for your own use too?

And otherwise, maybe UV animation could also help by oversizing the sprite planes at first and moving the uv’s coordinates.

Hope it can give you a head start :slight_smile:

I think the buildin shaders have some animated vertex / grass shaders too,
http://unity3d.com/unity/download/archive

You can check this package. It includes wind animation in the way you mention, among many other features.

Store Link: Massive Vegetation | 3D Vegetation | Unity Asset Store

Forum: [RELEASED] Massive Vegetation - ultra high performance billboard rendering system

PS: I´m the author, so I´m not imparcial… :slight_smile: