Make mesh classes use references to shaders instead of pointers.