Original Post
how would you do a framework for a set of shaders? Ok lets say you have multiple fx files. which you use for different objects in your scene, and you also have multiple lights in your scene. in which case you have to pass in your lights to each shader(which is in its own fx file) so the final pixel color can be determined. but my question is how do you do a framework such that you dont need to pass in each light to each shader, so all that info can be kept in a fx file for all the other shaders to use.