Maybe create a blank material and then just call the update function to set all the appropriate properties.