Result = CopyMaterial(#Material, #NewMaterial)Description
Creates a new material which is the exact copy of the specified material.
#Material The material to copy. #NewMaterial A number to identify the new material. #PB_Any can be used to auto-generate this number.
Nonzero if the material was successfully duplicated, zero otherwise. If #PB_Any was used for the #NewMaterial parameter then the generated number is returned on success.