You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
1009 B
16 lines
1009 B
2 years ago
|
# Master Stack
|
||
|
|
||
|
## Description
|
||
|
|
||
|
The Master Stack is the end point of a Shader Graph that defines the final surface appearance of a shader. Your Shader Graph should always contain only one Master Stack.
|
||
|
|
||
|
![image](images/MasterStack_Populated.png)
|
||
|
|
||
|
The content of the Master Stack might change depending on the [Graph Settings](Graph-Settings-Tab.md) you select. The Master Stack is made up of Contexts, which contain [Block nodes](Block-Node.md).
|
||
|
|
||
|
## Contexts
|
||
|
|
||
|
![image](images/MasterStack_Empty.png)
|
||
|
|
||
|
The Master Stack contains two Contexts: Vertex and Fragment. These represent the two stages of a shader. Nodes that you connect to Blocks in the Vertex Context become part of the final shader's vertex function. Nodes that you connect to Blocks in the Fragment Context become part of the final shader's fragment (or pixel) function. If you connect any nodes to both Contexts, they are executed twice, once in the vertex function and then again in the fragment function. You can't cut, copy, or paste Contexts.
|