Do you know that you can use data structures as uniform variables in GLSL?
GLSL Uniform Structures

3D Programming, Prototyping and Gamedev with GeeXLab
Do you know that you can use data structures as uniform variables in GLSL?
In this article, we saw how to use a GPU program with GLSL Hacker. Now we’re going to see how we can pass information (variables) to a GPU program.