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 same material. Just one single material is needed, to switch between whole shaders, if needed.
00:00:19 - Introduction
00:03:54 - Setting the material
00:04:50 - Set the first math node
00:06:56 - How the math node work
00:08:13 - Set the nodes to switch between colors
00:09:37 - Preparing more colors
00:12:45 - Switch between shaders
00:17:09 - Shader tree overview
Support me: https://ko-fi.com/christophwerner