For a description of the Light Info utility, see Light Info.
To view and connect Light Data attributes to Light Info attributes
Notice the light tab added to the top of the Light Info’s Attribute Editor. Click this tab to access the light’s information and adjust these values to translate and change the light in X, Y, and Z.
You can also select any one of the Light Data attributes from the Connection Editor. Light Data attributes include the light direction, light intensity, light ambient, light diffuse, light specular, and light shadow fraction.
Use this information as the input to other shading nodes to produce interesting effects. For example, if you connect the Sample Distance attribute to one of the color attributes of a material, the color changes depending on how far it is from the light.
You can attach the World Matrix of any object (not just a light) to this node, to get information about the object’s position relative to the point being shaded.