I'm in the doing of implementing PSSM (parallel shadow split maps, or maybe parallel split shadow maps) and I got a working example up and running.
Now I'm trying to integrate the code into my existing game and I have one big problem to solve:
When creating the "shadow maps" I need to use a special shader (that renders the depth and not the colour etc.) which means that I need to replace ALL my different shades (reflexive, normalmapped etc. etc.) with it and of course set back the old ones after I'm done.
This feels as cumbersome as slow so that's why I'm here

Can you override like all materials in some (fast and easy) way?
The other solution I'm investigating (or trying to investigate

Can you easily duplicate nodes and then change the material (ie. shader) easily?
Thanks a bunch!