docs.unity.cn

Shader Graph 12.1.12

    Show / Hide Table of Contents

    Saturate Node

    Description

    Returns the value of input In clamped between 0 and 1.

    Ports

    Name Direction Type Description
    In Input Dynamic Vector Input value
    Out Output Dynamic Vector Output value

    Generated Code Example

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

    void Unity_Saturate_float4(float4 In, out float4 Out)
    {
        Out = saturate(In);
    }
    

    对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答
    In This Article
    • Description
    • Ports
    • Generated Code Example
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 07 July 2023