cone VEX function

Context: surface

See also: Writing a PBR shader

  1. bsdf cone(vector dir, float angle)

A cone reflection along a given direction vector. This BSDF is constant within the given angle, producing a similar result to the gather or irradiance loops.

  • dir – the direction of specularity.

  • angle – cone angle in radians.