void PEXOCCSetBFReflectionModel( PEXOCC context, int model )
void PEXSetBFReflectionModel( Display *display, XID resource_id, PEXOCRequestType req_type, int model )
None.
Invoke PEXOCCSetBFReflectionModel to create an attribute output command which sets the back-facing surface reflection model attribute in the renderer's pipeline state according to the value specified by model.
By setting the back-facing reflection model attribute's ASF to PEXIndividual (see PEXOCCSetIndividualASF), you use the pipeline state's back-facing surface reflection model entry to specify which reflectance components to consider when performing reflectance calculations on back-facing surfaces of output primitives. When you set the back-facing reflection model attribute's ASF to PEXBundled, the implementation uses the back-facing reflection model value from the interior bundle table.
To apply the back-facing reflection model to the back-facing surfaces of output primitives, you must set the facet distinguish flag to True (see PEXOCCSetFacetDistinguishFlag). If you set the flag to False, then the implementation uses the reflection model when lighting back-facing surfaces (see PEXOCCSetReflectionModel).
PEXlib defines the following 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:
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.