Here is a quick gizmo for nuke, in fact, a simplified version of the "AutoRelight" Gizmo, this one allow you to create quicly a rimLight in comp, you just need to plug a point pass and a normal pass in the node, and enjoy !
You can also plug a ambiant occlusion pass as well as an ID pass in order to mask the effect.