Glsl function - add ModularProgram

The compiler makes sure that declarations are only added once per shader.