opengl - How to access an uniform array with a float as index in GLSL? - Game Development Stack Exchange
Matt DesLauriers on Twitter: "I'm also testing this with GUI parameters in another branch, and things are working nicely so far. To pass down something like a GUI slider, you just need