Feature/basic osg shader2

rebased
we should find a better name for this function, it's too abstract. This function is used for shaderGenerator to understand a changed happened.
Do you have suggestions ?