specularratio_bsdf
VEX function
Returns the approximate proportion of specularity in a bsdf.
Contexts: displace, fog, light, shadow, surface
See also: eval_bsdf, sample_bsdf, emission_bsdf
-
float specularratio_bsdf(bsdf b, int mask)
The return value will be in the range of 0 to 1, with 0 meaning diffuse and 1 purely specular.