See calculatenormal in the RenderMan documentation.

VOP nodes