I've always admired the animated battle flags in Crusaders Way to Expiation and Hispania 1200, which look like this:
Unfortunately, the CWE flag_veter_animated_items shader used by both isn't OSP and its source mb.fx file has been lost so only compiled code remains. However, Mark7 has kindly given us a copy of his blowing flag and waving materials algorithms (with the original as opposed to the final variables, which were presumably also lost with the mb.fx source file). So, I've edited a dot3 vertex shader and tweaked the blowing flag variables with the following result:
While not as impressive as Mark7's original, it's better than a static flag.
The only downside is that WFaS, unlike Warband, appears to need the compiled FXO files in its root folder as opposed to the mod folder. Clearly, that will complicate the installation process, forcing players to back-up the existing FXO files and manually copy my new ones from the mod folder into their root folder.
Is that a showstopper? If not, I can continue fiddling with the variables to try and improve this shader.