saveasrefΒΆ

nil saveasref ( string reffilename , string masterfilename )

Save the material as a couple of Material and MaterialRef.

This function saves the Material in a master file and the associated MaterialRef in a reference file so one can load the reference file in place of the actual master material file, and use the master material as a file based shader.

Arguments:

  • reffilename The path to the reference MaterialRef file
  • masterfilename The path to the master Material file, or nil if the master file shall be saved next to the reference file