blinn VEX function

phong, blinn, and specular return the illumination for specular highlights using different lighting models.

Context: surface

See also: phong, wireblinn, matchvex_blinn, Writing a PBR shader

  1. vector blinn(vector nml, vector V, float roughness)

  2. bsdf blinn(float exponent)

  3. bsdf blinn(vector nml, float exponent)

See phong for information on the basic lighting models. See writing a PBR shader for information on BSDFs.

You can optionally specify a light mask.

BSDF version

  1. bsdf blinn(float exponent)

  2. bsdf blinn(vector nml, float exponent)

A blinn highlight.

  • exponent – blinn exponent.