See the RSL illuminance conditional construct for light shaders in the RenderMan documentation.

VOP nodes