rprShapeSetMaterialFaces
Sets shape materials for specific faces.
rpr_status rprShapeSetMaterialFaces( |
rpr_shape shape, |
rpr_material_node node, |
|
rpr_int const * face_indices, |
|
size_t num_faces); |
Parameters
Parameter |
Description |
---|---|
shape |
The shape to set the material for. |
node |
The material to set. |
face_indices |
Notes
Sets a material only on selected face indices of a shape.
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.