Working with Base Layers

 
 
 

When you open the texture layer editor for a given shader, the shader's ports, and any shaders connected directly to them, are displayed as base layers. The Base Colors layer shows a color box for every unconnected port, while an additional base layer is created for every shader connected directly to one or more ports. Collectively, the base layers are a sort of canvas on top of which you can build an effect using texture layers.

Here, a Lambert surface shader has been applied to an object and an Image shader is connected directly to the LambertÔs Ambient Diffuse, and Transparency ports. Two base layers are created in the texture layer editor: the LambertÔs Base Colors layer and an additional base layer for the Image shader.

A

A dot indicates that a shader is connected to the port.

B

A color box indicates that the port is unconnected.

C

The Base Colors layer shows the color value of each unconnected port.

D

The base layer shows you the ports to which the shader is directly connected. In this case, Ambient, Diffuse and Transparency.

E

A thick black line separates base layers from texture layers.

Because base layers are a representation of what is directly connected to the current shader's ports, any time you connect a shader to a port, a base layer is created and the port's color swatch is removed from the Base Colors layer.

Outside of the texture layer editor, you can create base layers by:

The following sections describe how to work with base layers in the texture layer editor.

NoteThe texture layer editor is the only place where base layers are actually represented as layers. In the render tree, the base layers are represented by direct connections to shader ports (see Base Layers in the Render Tree), while in shader property editors, base layers are represented by connections to the parameters in the main property editor.

Adding and Replacing Base Layers

In the texture layer editor, you can add and replace base layers using menus that appear when you click or right-click various parts of the base layers. Adding and modifying a shader's base layers actually makes and breaks direct connections to the shader's ports, and you can see these changes reflected in the render tree or the shader's property editor.

To add a base layer

  1. Select one or more cells in the base layer rows, including the Base Colors row if desired.

  2. Right-click one of the selected cells and choose one of the following from the menu:

    Texture

    Effect

    Image

    Adds an image shader as a new base layer.

    Clips

    Opens a sub-menu that lists all of the scene's image clips. You can select any clip from the list. The clip is added as a new base layer via an Image shader.

    Sources

    Opens a sub-menu that lists all of the scene's image sources. You can select any source from the list. A new image clip is created from the source and added as a new base layer via an Image shader.

    Various Shaders

    A specific group of shaders appears, depending on the type of port selected. Choosing a shader adds it as a new base layer.

    More...

    Opens a browser so you can select any shader from the shader library. The selected shader is added as a new base layer.

    Note: Once you select a shader from the browser, it appears in a list of most recently used shaders under the More... option.

    Two things happen:

    • The new base layer is added to the texture layer editor. The base layer's shader is directly connected to all of the selected cells' ports (or connected via conversion shaders if necessary — see Methods for Editing Shaders [Materials and Shaders] for more information).

    • Connected ports' color boxes disappear from the Base Color row and dots appear in the cells where the ports' columns and the new base layer's row intersect.

Tip
  • Another way to add a new base layer is by dragging and dropping an image/shader preset from a toolbar or browser onto an unconnected port's color box in the Base Colors layer.

  • You can also drag and drop a texture layer's thumbnail to use the layer's texture as a base layer.

To replace a base layer

  • Click a base layer thumbnail's arrow icon (or right-click the thumbnail) and choose any of the options from the menu described in the previous procedure.

    The base layer's shader is replaced with the new shader. All of the layer's port connections are kept.

Tip
  • Another way to replace a base layer is by dragging and dropping an image/shader preset from a toolbar or browser onto a base layer's thumbnail.

  • You can also drag and drop a texture layer's thumbnail to replace the base layer with the texture layer's texture.

Connecting and Disconnecting Ports from Base Layers

You can connect one or more of a shader's unconnected ports to, or disconnect them from, an existing base layer by doing the following:

  1. Select the cells of one or more ports in the base layer rows.

  2. Right-click one of the selected cells and choose one of the following:

    • Connect Shader connects the selected cells' base layers to their ports. Dots appear in each of the selected cells to indicate the connection.

    • Disconnect Shader disconnects the selected cells' base layers from their ports. The ports' color boxes reappear in the Base Colors layer and dots indicating connections to base layers are removed from the cells.

    If you selected a mix of connected and unconnected cells, the command you choose is applied to all of the cells.

NoteWhen you disconnect a base layer from its last connected port, the base layer disappears.
TipAnother way to add an unconnected port to a base layer is to drag and drop the base layer's thumbnail on the port's color box.

Editing Base Colors and Base Layers

There are three ways to open the property editors for base layer shaders:

  • Double-click any cell in the Base Colors layer. A combined property editor opens for the current shader (the one whose layers you're displaying in the texture layer editor), as well as all of its texture layers and the ports to which they're applied.

  • Double-click any base layer's thumbnail or any of the cells where it's connected to a port to open the property editor for the base layer's shader.

  • Right-click a thumbnail or connected cell and choose Edit from the menu.

Deleting (Disconnecting) Base Layers

There are two ways to delete base layers:

  • To delete a single base layer, right-click the layer, its thumbnail, or any of the cells where it's connected to a port and choose Disconnect.

  • To delete multiple base layers, select them and press Delete.

Any ports connected to deleted base layer shaders are automatically disconnected, and their color boxes reappear in the Base Colors layer.

NoteYou cannot delete the Base Colors layer.