Switch to std::vector for materials. Makes more sense.