RenderGraphNodeMaterialOverrideΒΆ

Override material parameters.

This nodes lets you override material parameters. You can freely add any shader parameter in this node by using the 'Add' button:

  • Type in the name of the shader parameter to override in the edit box next to the 'Add button'
  • Choose the type of the value to add (float, color, string, ...)
  • Click 'Add'
  • Change the value of the parameter
  • Remove a parameter override by clicking the red cross on the right of the paramter.

Use this node to add new custom attributes, such as a new ObjectId which you can get in a AOV (using the Shader Name.)

It is possible to change the content of the type drop box by overriding Material.CustomOverrides. For instance:

Material.CustomOverrides =
{
   {Name="Albedo",Type=types.color,Value={1,1,1}}
   {Name="Roughness",Type=types.color,Value={1,1,1}}
}

will add items in the drop down with 2 items, with setup for type and initial value.