18. Introduction to GafferThree nodes: Part 2
This video shows how to use a GafferThree node to create a Master Material and light rig.
In the video:
• To create a Master Material and apply it to a light:
|1.||Right-click in the GafferThree node's table of objects in the Parameters tab, and choose Add > Master Material from the context menu.|
|2.||In the Material tab, click Add Shader and choose a light shader from the menu, for example Light in the dl section.|
A group parameter named dlLightShader appears.
|3.||Click the empty shader widget next to the parameter's title and click one of the shaders that are listed in the popup, for example areaLight.|
|4.||Expand the dlLightShader group parameter, by clicking its label, and set your shader's desired color and other properties.|
|5.||In the GafferThree node's table of objects, double-click in a cell in the Shader column of the row that represents the light to which to assign the Master Material, and click the scene graph location path of the Master Material to assign.|
The light is now bound to the Master Material and inherits its material properties.
Tip: You can duplicate a light by right-clicking and selecting Duplicate in the GafferThree node's table of objects.
• To create a light rig:
|1.||Right-click in the GafferThree node's table of objects in the Parameters tab and choose Add > Rig from the context menu.|
|2.||Middle-mouse click and drag your lights onto the rig.|
• To prevent an object from being illuminated by a particular light:
|1.||In the parameters of the edited GafferThree node, go to Linking > light linking.|
|2.||Middle-mouse drag a geometry location from the Scene Graph tab onto the Add Statements button of the off sub tab under the light linking section, for example: /root/world/geo/groundPlane/groundPlaneShape.|
For more information on light linking with GafferThree nodes, see Linking Lights to Specific Objects.