For example, to get the position of some object into your shader as a vector, use three Input Value nodes and a CombineRGB node to transform the three values into a vector (to feed to your shader). Assign drivers to each Value node by right clicking in the Value field abs selecting “Add Driver”. Then - in the Graph editor, select Drivers, open the properties pane (N key), scroll down, and enter the text “VAR” (without the quotes) into the Expr: field (expression). Next, from the Ob/Bone drop down combo box, select the object that you want the position of (e.g. the Cube). Then, from the Type combo box, select the attribute you want to ‘drive’ into the shader (e.g. X Location). Repeat these steps for the other Value nodes.