rprMaterialNodeSetID

Sets the RPR_MATERIAL_NODE_ID of a material.

This ID doesn’t need to be unique. This ID can be rendered with the RPR_AOV_MATERIAL_ID AOV - color of this AOV can be customized with rprContextSetAOVindexLookup.

rpr_int rprMaterialNodeSetID(

rpr_material_node in_node,

rpr_uint id);

Parameters

Parameter

Description

in_node

The material node to set ID for.

id

The ID to set.

Return

Returns RPR_SUCCESS in case of success, or RPR_ERROR code if a problem was encountered.

To learn how to handle errors in AMD Radeon ProRender SDK, see Error Handling.