Suppose I've more than one shaders and they include an ".fxh" file like this one:
//common.fxhuniform extern float3 g_ViewPos;uniform extern matrix g_ViewMat;uniform extern matrix g_ProjMat;//blah blah blah
You know some parameters can be set per frame (like the parameters above), but some others "must" be set per object (or subset).
Now, what I want to do is this: I want to fill all the parameters declared in common.fxh "once per frame", and these parameters can be used all the other shaders includes common.fxh.
How can I do that?
Thx. in advance.
-R