docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Custom Color Node (HDRP)

    The Custom Color Node accesses the custom pass color buffer allocated by HDRP.

    Render pipeline compatibility

    Node Universal Render Pipeline (URP) High Definition Render Pipeline (HDRP)
    Custom Color Node No Yes

    Ports

    Name Direction Type Binding Description
    UV Input Vector 4 Screen Position Sets the normalized screen coordinates to sample.
    Output Output Vector 4 None The value the custom pass color buffer contains at the sampled coordinates.

    Generated Code Example

    The following example code represents one possible outcome of this node.

    void Unity_CustomDepth_LinearEye_float(float4 UV, out float Out)
    {
        Out = SampleCustomColor(UV.xy);
    }
    
    In This Article
    Back to top
    Copyright © 2024 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)