docs.unity3d.com
    Show / Hide Table of Contents

    Master Stack

    Description

    The Master Stack is the end point of a Shader Graph that defines the final appearance of the shader. Your Shader Graph should always contain one, and only one, Master Stack.

    image

    The content of the Master Stack may change depending on the Graph Settings selected. The master stack is made up of Contexts, which contain Block Nodes.

    Contexts

    image

    The Master Stack contains two Contexts, Vertex and Fragment. These represent the two stages of a shader. Anything connected to the Vertex Context is performed in the vertex calculations of the shader, and anything connected to the Fragment Context is performed in the fragment (or pixel) calculations of the shader. Contexts cannot be cut, copied, or pasted.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023