Fleshed out some of the GLSL generation code