getglobalraylevel VEX function

Returns the depth of the ray tree for computing global illumination.

Contexts: displace, fog, light, photon, shadow, surface

  1. int getglobalraylevel()

Returns the depth of the ray tree for computing global illumination. If this function returns a non-zero value, the shader is being called for the purpose of evaluating global illumination.