Original Post
I'm relatively new to creating shaders in GLSL and in the Orange Book there is a chapter on general purpose shaders, such as texturing and lighting. However there isn't an example in the book on how you would texture a geometry in one shader and then apply lighting to the geometry in another, and combine the results of the two separate shaders. Does anyone have an example of texturing a cube with one shader (procedural or otherwise) and then applying a light to it in another shader?