Any advice on creating beautiful waving flags?

I can imagine it’s a shader what I need but not quite sure.
Anyone with experience on this?
Thanks a lot!