float diffuseBRDF(vector L, vector N)
Equivalent to clamp(dot(L, N), 0, 1).
float diffuseBRDF(vector L, vector N, vector V, float rough)
specularBRDF, phongBRDF, blinnBRDF,
and diffuseBRDF
return the computed BRDF for the
different lighting models used in VEX shading. You can use them in
custom illuminance loops to replicate the lighting models of the
corresponding VEX lighting functions.
See specularBRDF for some example code.
See also | |
brdf | |
shading |
|