Foliage is animated in the vertex shader. Information for the shader like pivot points, gradients, etc, are stored in the vertex colors.
To bake the information into the vertices, I wrote custom Python tools, integrated into Limbic's tool box.
I had the pleasure to work on tools and pipelines for the Park Beyond game.