sample_bsdf
VEX function
Samples a bsdf.
Contexts: displace, fog, light, shadow, surface
See also: eval_bsdf, emission_bsdf
-
sample_bsdf(bsdf b, vector viewer, vector geo_normal, vector &out_vector, vector &eval, int &type, float sx, float sy, int mask)
|
|
Vector toward viewer. |
|
|
Geometric normal. |
|
|
Random values, such as generated by nextsample. Different values of |
|
|
A bitmask indicating which types of bounces to evaluate. The following bitmask constants are defined in
|
The function modifies the values of the following arguments:
|
|
The sampled outgoing vector. |
|
|
The color of the evaluated component. |
|
|
The type of component sampled. This uses the same constants as in the |