CALL PSRFP(RPTYPE, LDR, DATREC)
INPUT PARAMETERS
A SET REFLECTANCE PROPERTIES element is inserted in the open structure after element pointer or replaces the element indicated by element pointer, depending on edit mode. Element pointer then points to the SET REFLECTANCE PROPERTIES element. The value specified by the parameter is associated with the element.
When an element of this type is interpreted, the current reflectance properties entry in the traversal state list are set to the values associated with the element. These values are (possibly) used when displaying front-facing portions of subsequent area defining output primitives when the current reflectance properties ASF in the traversal state list is INDIVIDUAL.
DATREC parameters to build REFLECTANCE PROPERTIES DATA RECORD
for RPTYPE = 1(PSRPT) :
The IA array contains :
- The colour type (CT)
- The number of components of colour value(NCC)
- The colour index of the specular colour if CT is indirect.
The RA array contains :
- The actual data of ambient reflection coefficient
- The actual data of diffuse reflection coefficient
- The actual data of specular reflection coefficient
- The actual data of specular exponent
- The actual data of colour component values as required by CT.
Common element :
IL = 2+*
IA(1) = colour type = CT
IA(2) = number of components of colour value = NCC
RL = 4+*
RA(1) = ambient reflection coefficient
RA(2) = diffuse reflection coefficient
RA(3) = specular reflection coefficient
RA(4) = specular exponent
SL = 0
LSTR =()
STR =()
Individual element :
CASE colour type = 0(indirect) :
IA(3) = specular colour index
CASE colour type = 1(RGB) or 2(CIELUV) or 3(HSV) or 4(HLS) :
RA = element 5 through 4+NCC contain the colour values
If GPHIGS is in NRS mode, the effect of this function is different from the effect described in the standard.
In NRS mode, (see OPEN PIPE), the element is not stored in a structure. It is sent to the workstation on which the pipe is opened.
fill area, fill area set, fill area set 3 with data, set of fill area sets 3 with data, triangle set 3 with data, triangle strip 3 with data, quadrilateral mesh 3 with data, cell array 3 plus, non-uniform b-spline surface 3, non-uniform b-spline surface 3 with data, open structure, open pipe (ext), inquire current element content, inquire current element type and size, set reflectance model, set light source state.