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.
- 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
- Create an Ellipse.
- Select the Ellipse.
- Click the Duplicator icon in the Shelf.
- Create 3 Gradient Shaders.
- Create a Shader Array.
- Use the button to create 2 more indexes on the Shader Array.
- Connect the Gradient Shaders to each Shader Array index.
- 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.