See the RSL occlusion function in the RenderMan documentation.

VOP nodes