A well-commented, fast and easily customizable flag shader. The vertex shader interpolates between two states (folded and unfolded) where the wind speed the user specifies affects the animation speed, blending and mirroring of the states. The fragment shader applies gradient lighting calculated in the vertex shader and can be commented out if not needed.
The extension consists of one object, one shader and five scripts to make it easy to implement, together with an example to show you how to use the extension. The scripts let you set the wind speed, the animation speed factor, the flag x/y/width/height, the amount of vertices to use and more.
Video and screenshots from marketplace: