Home Reference VEX VEX functions 

blinn vex function

Context: surface

Tags: pbr, shading

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

  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.