rprShapeSetDisplacementMaterial
Sets a displacement texture.
rpr_status rprShapeSetDisplacementMaterial( |
rpr_shape shape, |
rpr_material_node materialNode); |
Parameters
Parameter |
Description |
---|---|
shape |
The shape to set a displacement texture for. |
materialNode |
Displacement texture as a material. |
Notes
Subdivision must be enabled on the object for this to work.
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.