rprShapeSetMaterial

Sets shape material.

rpr_status rprShapeSetMaterial(

rpr_shape shape,

rpr_material_node node);

Parameters

Parameter

Description

shape

The shape to which the material will be applied.

shader

The material node to be applied.

Notes

Every polygon of a mesh will have the shader applied to it, a shape being a label applied to a mesh or an instance.

The possibility to assign shaders on a face-by-face basis is available with rprShapeSetMaterialFaces().

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.