To avoid repeatedly creating identical shader graphs and slowing down your game, you can create and save a preset shader graph, then re-use this preset next time you create a new StingrayPBS.
The Parent Material field is now empty.
See also Build a Stingray Physically Based Shader using the ShaderFX editor.
(Optional) Select the Standard Base node in the ShaderFX editor. In the StingrayPBS Attribute Editor, provide a path and resource name, for example: /content/materials/my_stingray_material in the Parent Material attribute. Now, upon export to Stingray, the shader graph points to the parent graph at /content/materials/my_stingray_material. When the StingrayPBS is imported in Stingray, Stingray will not re-create a parent graph. However, you must ensure that the graph in your ShaderFX editor in Maya be the same as the parent graph in the Stingray game engine; that is, the one set in your path. For more information, see Interoperability of shader graphs between Maya and Stingray.
(Optional) Rename your shader node for easy identification when you import your .fbx file into a game engine.
If you are exporting to Stingray using File > Send to Stingray, you can also enter a name for your material in the Engine Resource attribute in the StingrayPBS Attribute Editor, and this name will be used as the material name in Stingray.
Now when you restart Maya and create a new Stingray PBS node, you can find your preset in the Preset Material drop-down list.
Select your preset to reuse the same shader graph. You can continue to use the preset as long as you only change the attributes (those visible in the Stingray PBS Attribute Editor) and not the shader graph.
From the Preset Material drop-down list, select the preset with the shader graph that you want to start building from.
Click Make Unique in the Stingray PBS Attribute Editor. The Stingray PBS node no longer points to the previously selected preset; however, the shader graph of that preset is maintained when you click Open ShaderFX.
A material that contains a shader graph is called a parent material.
You can create child materials based on a parent material. A child material inherits the shader graph, and thus the material attributes, from the parent material.
Child materials can modify the attributes of the parent material; for example, its color values and texture maps. Generally speaking, these are attributes that are visible in the Stingray PBS Attribute Editor. However, a child material cannot change the parent material's shader graph.
If you have a team of soccer players in your scene, you can create one shader graph to shade all of their t-shirts.
Create one parent material with a preset shader graph, then create 10 child materials based on the parent. Each child material Attribute Editor can connect to a different texture that represents the player name and number. Because the 10 child materials do not have a shader graph connected, they are much faster to calculate, reducing the performance hit.
Click Open ShaderFX to open the ShaderFX editor window.
A message in the ShaderFX editor informs you that this graph is inherited from the preset graph; in this case, your custom preset.