Shader and Layer Relations

The Hair Strand Builders' layer system allows you to manage your hair strands using Maya Display Layers built directly into the main UI. The layers and shaders of that layer are related, and we will go through them both on this page.


Shader Options

Texture Toggles

Texture toggles allows you to quickly display the texture assigned to the layer (if assigned).

  • Full - Display all textures on strands.

  • Color Only - Display the color of layer on strands.

  • Alpha Only - Display only the alpha + the color of the layer on strands. (Card Only)

Shader Swaps

Changes the selected layers material type.

  • Lambert, Surface

  • Blinn, Phong, Ramp (Tube Only)

Create New PFX Outline On Selection (Tube Only)

  • With strand curves selected, applies a new PFX outline node.

Remove Assigned PFX Outlines (Tube Only)

  • with strand curves selected, removes the assigned PFX outline node.

Delete PFX Outlines (Tube Only)

  • opens a UI where we can select existing PFX outline nodes and delete them.

Randomly Assign Cards To Layers (Card Only)

  • A UI for randomizing card strands into layers.


Layer and Shaders Relations

Each layer represents a shader. Every strand in that layer will be assigned to the same shader.

Whenever a layer is created, from the Create button, PFX Draw Tool, or from the duplicate layer function, a shader network (with a random color) is created as well. The shader network will have:

  • a shader, and

  • condition nodes (for texture toggle purposes)

Tube Layer Material network:

Card Layer Material network:


Connecting Texture

For Tubes:

  • Diffuse: Connect 'OutColor' of a map to '<layer>_cond_diffuse.ColorA'

For Cards:

  • Diffuse: Connect connect 'OutColor' of a map to '<layer>_cond_diffuse.ColorA'

  • Alpha: Connect connect 'OutTransparency' of a map to '<layer>_cond_alpha.ColorA'

Here's a quick video on how to connect an .png texture as alpha.

Moving Strands to Another Layer

When a strand is moved from one layer to another, it will automatically assign the strand to the shader of that layer.

When moving a strand to another layer, the corresponding shader will be assigned

Changing Layer Shader Type

If the default lambert is not for you, you can change the shader type by:

  • Selecting the layers

  • Go to the Shader Toggle button, and pick a shader type.


Randomly Assign Strands to Layers (Card Only)

  • To give more variations to card strands. The tool allows you to randomize card strands into layers, with percentage.

  • To do that, click on the drop down, and select "Randomly Assign Cards to Layers" option. This will open a UI with all the layers and percentage input fields.

  • With the card strands selected, now select all the layers to randomize. Enter a percentage for each selected layers, and click on Apply.

  • To re-shuffle, click on Apply again.

Only the highlighted layers will be used for randomizing cards into.

Last updated