In Maya, the samplerInfo node is responsible for a ton of neat shading effects, including realistic glass, velvet, fake rim lighting, and interactive z-depth shaders. All the samplerInfo node does is return properties of the object that is being rendered during render time (such as the world space position of the point of the object currently being rendered). I'm not going to go into the details of all of these properties here; check the Maya documentation for detailed descriptions of any of the attributes I don't mention here.
To quickly see what this thing can do, create a Blinn shader and assign it to a sphere. Then, in the Hypershade, go to Create > General Utilities > Sampler Info, or use the Create tab on the left side of the window. Then create a Ramp texture, and delete the associated 2D or 3D Placement node attached to it. Edit the ramp to make it a V Ramp that ranges from black to white, with white at the top (position 1.0) and black at the bottom (position 0.0).


