Christoph Werner writes:
In this Blender tutorial you'll learn how to use the Object Pass Index value to control material parameters.
In my example you see how to change a material of instanced objects. Every object gets an own color even if it's using the very same material.
You'll learn how to use just one single material for all objects, to switch individually between values and even whole shaders.
Have fun watching!