The asset manager used to create the material.
The type of the shader graph asset.
Optional
materialDir: stringThe directory where the material will be created. Default is an empty string.
Optional
materialName: stringThe name of the material. Default is 'new material'.
Optional
shaderGraphDir: stringThe directory of the shader graph asset. Default is an empty string.
An object containing the created material asset, the shader graph asset, and the pass on the material.
Creates a material from a shader graph asset.