Home Reference VEX VEX functions 

getglobalraylevel vex function

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

Tags: shading

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

  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.