Description | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Enumeration

    Description

    When using CodeFunctionNode you are able to define Ports with any Bindings that available in Shader Graph. For a full list of available Bindings see Port Bindings. When using CodeFunctionNode Bindings are defined using SlotAttribute.

    For more information on how to create Nodes using CodeFunctionNode see Custom Nodes with CodeFunctionNode.

    Below is a full list including the Port Bindings they map to.

    Properties

    SlotAttribute Binding Port Binding
    ObjectSpaceNormal Normal (in object space)
    ObjectSpaceTangent Tangent (in object space)
    ObjectSpaceBitangent Bitangent (in object space)
    ObjectSpacePosition Position (in object space)
    ViewSpaceNormal Normal (in view space)
    ViewSpaceTangent Tangent (in view space)
    ViewSpaceBitangent Bitangent (in view space)
    ViewSpacePosition Position (in view space)
    WorldSpaceNormal Normal (in world space)
    WorldSpaceTangent Tangent (in world space)
    WorldSpaceBitangent Bitangent (in world space)
    WorldSpacePosition Position (in world space)
    TangentSpaceNormal Normal (in tangent space)
    TangentSpaceTangent Tangent (in tangent space)
    TangentSpaceBitangent Bitangent (in tangent space)
    TangentSpacePosition Position (in tangent space)
    MeshUV0 UV (channel 0)
    MeshUV1 UV (channel 1)
    MeshUV2 UV (channel 2)
    MeshUV3 UV (channel 3)
    ScreenPosition Screen Position (Default mode)
    ObjectSpaceViewDirection View Direction (in object space)
    ViewSpaceViewDirection View Direction (in view space)
    WorldSpaceViewDirection View Direction (in world space)
    TangentSpaceViewDirection View Direction (in tangent space)
    VertexColor Vertex Color
    In This Article
    • Description
    • Properties
    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