matcap render support

Hi Mathieu,

Sorry that I have one more question about the code below:

It seems to be a hotfix to the default shader impl which is very useful.
Is there any user-guide about how to write code like that?