I think what I want is basic, but I can't find a good way to phrase it when searching.
The scenario, I have one object in two collections and two View layers. I want the material to be aware of which View Layer it is currently rendering to, and change its colour so that each pass the same material appears to be a different colour.
For example have object A. with material "block", I want that material to be red when rendering in "View Layer", and to be blue when rendering in "Second layer".
Any help would be amazing, thanks!