shimport VEX function

Imports a variable from the shadow shader for the surface.

Contexts: fog, surface

  1. int shimport(string , int &)

  2. int shimport(string , float &)

  3. int shimport(string , vector &)

  4. int shimport(string , vector4 &)

  5. int shimport(string , matrix &)

  6. int shimport(string , matrix3 &)

  7. int shimport(string , string &)

Imports a variable from the shadow shader for the surface.

If the shader variable named by the first argument is defined and exported, the function returns 1 and puts the value in the second argument. Otherwise, it returns 0.

This function is only valid inside an illuminance loop.