eval_bsdf
VEX function
Evaluates a bsdf given two vectors and a normal.
Contexts: displace, fog, light, shadow, surface
See also: sample_bsdf, emission_bsdf
-
int eval_bsdf(bsdf b, vector viewer, vector geo_normal, vector light, int mask)
|
|
Vector toward viewer. |
|
|
Geometric normal. |
|
|
Vector toward light. |
|
|
A bitmask indicating which types of bounces to evaluate. The following bitmask constants are defined in
|