I wanted to know how one should approach toggling various shader effects such as Shadows on/off.
Should I have a single shader that checks a global bool and branch depending if shadows are on/off.
Or should I write two shaders, one with shadows on and one with shadows off?
Are there any considerations I should be aware of?
With multiple passes and many things to turn on and off on the fly, one could end up with dozens of shaders depending on what effects are on and what effects are off.