Added support to override material in mesh compiler