rprShapeSetDisplacementScale
Sets displacement scale. Remaps [0;1] displacement values to minscale-maxscale.
rpr_status rprShapeSetDisplacementScale( |
rpr_shape shape, |
rpr_float minscale, |
|
rpr_float maxscale);, |
Parameters
Parameter |
Description |
---|---|
shape |
The shape to set displacement scale for |
minscale |
The min displacement scale to apply. |
maxscale |
The max displacement scale to apply. |
Notes
If you want negative displacement, minscale may be greater than maxscale.
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.