Glsl function - add ModularProgram

Not a set, so a dependency can occur multiple times. Does all the code handle this correctlty?