Sway
This demo has seven uniforms controlling its animation behavior, from maximum sway angle to whether it uses color. These values are organized into “presets” and swapped with a single updateUniforms call.
Swipe or use Left Arrow and Right Arrow to cycle through presets, and press Space to pause or resume. It shows how to get multiple looks out of one shader with a small set of uniforms.