Add a new type of 'multi' material in order to load default settings for materials that require multiple passes, such as shadow maps. I don't particularly think that this is the best way to do it, but it is less hacky than what was there before.