Skip to main content

Shader Array

Intro

Create a list of Shaders that can be assigned to other Layers via their indices.

UI

Auto Index - Automatically output all indices within the array.

Index - Manually output an index within the array (uncheck Auto Index to enable).

Reverse - Invert the order the indices are output in. For example, where there are 3 indices 0,1,2, their order will be reversed to 2,1,0.

Count - Output the number of indices in the array.

Button iconAdd
- Use this button to add more rows (indices) to the array.

0: Shader - The first index in the array. Connect a Shader to each index.

Example
  1. Create an Ellipse.
  2. Select the Ellipse.
  3. Click the Duplicator icon in the Shelf.
  4. Create 3 Gradient Shaders.
  5. Create a Shader Array.
  6. Use the
    Button iconAdd
    button to create 2 more indexes on the Shader Array.
  7. Connect the Gradient Shaders to each Shader Array index.
  8. Connect the Shader Array to the Shaders attribute on the Shape (under the Fill tab).
Double click to set Index

Double clicking on a indices' row will set the Index to that value.