What's the most optimized way to make plants sway? (3D)

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By andersmmg

I’m making a game with pretty simple graphics (3D), and I would like to have the trees and maybe some smaller plants, sway as if in the wind. I’ve seen a few ways like with shaders, and I just want to know what people think is the best, or most optimized, way to do this and not slow down the game.

:bust_in_silhouette: Reply From: Calinou

Shaders are probably one of the most optimized ways to achieve this. They’re also highly versatile, as you can simulate more realistic wind using shaders compared to premade animations.