I’m sure some of you have run into this error: “Too many layers used to exclude objects from lighting. Up to 4 layers can be used to exclude lights, while your lights use 31:”
I understand you can only exclude 4 layers on a light and otherwise they have to light everything in deferred mode. In my case, I have an overlayed UI with an “item preview window” where I’m rendering a 3D object to a render texture and putting it in the UI. I want this preview object to be lit by itself and not interact at all with the actual 3D world. So it’s on its own layer that all regular cameras ignore, and has a light that only lights that one object. This doesn’t really work due to the error. Is there any other way to do something like this? I attached a screenshot of what I’m talking about; I want the stairs in that preview window to be rendered with their own light that doesn’t affect the actual world geometry.