phonglobe VEX function

Context: surface

See also: phong, ashikhmin, Writing a PBR shader

  1. bsdf phonglobe(vector dir, float exponent)

A phong (blurred) reflection along a given direction vector. This will produce the same result as phong() when the direction vector is the reflection vector, but with this function you can also gather illumination from other directions (such as transmission).

  • dir – the direction of specularity.

  • exponent – phong exponent.