Is there a way for Materials to know when they're being rendered by a SceneCapture?

I’m trying to do this without Parameters, maybe using the Custom node?