void PEXOCCSetReflectionModel( PEXOCC context, int model )
void PEXSetReflectionModel( Display *display, XID resource_id, PEXOCRequestType req_type, int model )
None.
Invoke PEXOCCSetReflectionModel to create an attribute output command which sets the surface reflection model attribute in the renderer's pipeline state according to the value specified by model.
By setting the surface reflection models attribute's ASF to PEXIndividual (see PEXOCCSetIndividualASF), you use the pipeline state's surface reflection model entry to specify which reflectance components to consider when performing reflectance calculations. When you set the surface reflection model attribute's ASF to PEXBundled, the implementation uses the surface reflection model from the interior bundle table.
If you do not set the facet distinguish flag to True (see PEXOCCSetFacetDistinguishFlag), then the implementation applies the specified surface reflection model to back-facing as well as front-facing surface interiors. Otherwise the implementation uses the back-facing surface reflection model (see PEXOCCSetBFReflectionModel).
PEX defines the following surface reflection models (model):
Note: The reflection models defined above simply have new names for PEXlib 5.2 and are completely equivalent to their respective names in PEXlib 5.1: PEXReflectionNone, PEXReflectionAmbient, PEXReflectionDiffuse, and PEXReflectionSpecular
If the implementation does not support the specified reflection model, then the model defaults to PEXRMNone. Inquire the supported values for the surface reflection model by invoking the PEXGetEnumTypeInfo function.
This function is a member of the general surface attribute set.
For an overview and for a list of output attribute functions, see Output Attribute Functions.