I’m not sure if this is the right place to ask this question - I apologize ahead of time if it isn’t.
Let’s say I’ve got a boolean that determines if my game should use a shadow effect. On every render this boolean is checked, and the shadow processor is added/removed from the view port as expected. My question is a general purpose one; what would happen if I tried adding the shadow processor if there was already one attached to the view port? Would it add more, throw an error, or simply ignore the attempted addition?
I can easily add ways to prevent processors from being added multiple times, but I wanted to ask if that was even necessary.