90 |
|
In the third invocation form, |
91 |
|
.I bsdf2klems |
92 |
|
takes a functional specification of a BSDF. |
93 |
< |
The named function must accept 6 parameters corresponding to the |
93 |
> |
The named function should accept 6 parameters corresponding to the |
94 |
|
normalized incident and exiting vectors, respectively. |
95 |
|
By convention, these vectors point away from the surface, and a positive |
96 |
|
Z-component corresponds to the front side. |
97 |
|
The Y-component corresponds to the "up" orientation of the surface, |
98 |
|
as specified in the eventual scene description that references the XML |
99 |
|
output. |
100 |
+ |
If the function only takes 3 parameters, then the variables "Dx", "Dy", |
101 |
+ |
and "Dz" will be assigned to the reverse of the outgoing direction at |
102 |
+ |
each evaluation. |
103 |
+ |
(I.e., the vector will point into the surface and |
104 |
+ |
Dz will be negative on the front side.)\0 |
105 |
+ |
This simplifies conversion of functional BSDF specifications using the |
106 |
+ |
legacy material primitives "plasfunc", "metfunc", and "transfunc". |
107 |
|
.PP |
108 |
|
The function is defined by one or more |
109 |
|
.I \-e |