docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Surfgrad Compositor

    Combines up to four Surface Gradient inputs and returns the resulting Surface Gradient or resolved world space normal. Each input has an operation, intensity, and opacity value. Multiple Surgrad Compositor subgraphs can be chained together.

    Screenshot

    Ports

    Name Direction Type Binding Description
    Surfgrad1 Input Vector 3 None Input surface gradient 1
    Surfgrad2 Input Vector 3 None Input surface gradient 2
    Surfgrad3 Input Vector 3 None Input surface gradient 3
    Surfgrad4 Input Vector 3 None Input surface gradient 4
    Intensity1 Input Float None Scale applied to Surfgrad1
    Intensity2 Input Float None Scale applied to Surfgrad2
    Intensity3 Input Float None Scale applied to Surfgrad3
    Intensity4 Input Float None Scale applied to Surfgrad4
    Opacity1 Input Float None Opacity of Surfgrad1, only applies if Operation1 is set to Overwrite
    Opacity2 Input Float None Opacity of Surfgrad2, only applies if Operation2 is set to Overwrite
    Opacity3 Input Float None Opacity of Surfgrad3, only applies if Operation3 is set to Overwrite
    Opacity4 Input Float None Opacity of Surfgrad4, only applies if Operation4 is set to Overwrite
    Base Normal Input Vector 3 None Base normal
    Surfgrad Output Vector 3 None Output surface gradient
    Resolved_Normal Output Vector 3 None Resolved world space normal

    Controls

    Name Type Options Description
    Operation1 Dropdown Add, Subtract, Overwrite Operation for Surfgrad1
    Operation2 Dropdown Add, Subtract, Overwrite Operation for Surfgrad2
    Operation3 Dropdown Add, Subtract, Overwrite Operation for Surfgrad3
    Operation4 Dropdown Add, Subtract, Overwrite Operation for Surfgrad4
    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)