How do I apply a material to all sides of the brush automatically?

Works beautifully, thank you very much!