Radeon ProRender

rprShapeSetVertexValue

Assigns custom float value to some vertices of the mesh.

rpr_status rprShapeSetVertexValue( rpr_shape in_shape,
  rpr_int setIndex,
  rpr_int const * indices,
  rpr_float const * values,
  rpr_int indicesCount);

Parameters

Parameter Description
in_shape Shape to set values on.
setIndex Vertex value index to use. Can be between 0 and 3.
indices List of indicies of the mesh to set values on.
values List of values to set to mesh indices.
indicesCount Number of indices.

Example

// indicesSet and values must have the same size
rpr_int indicesSet[] = {4,0,1,2,3};
rpr_float values[] = { 0.8 , 0.1 , 0.0 , 1.0 , 1.0 };
rprShapeSetVertexValue(meshC, 0 , indicesSet , values , sizeof(indicesSet)/sizeof(indicesSet[0]) );

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.