docs.unity.cn
    Show / Hide Table of Contents

    Method psrdnoise

    psrdnoise(float2, float2, Single)

    2-D tiling simplex noise with rotating gradients and analytical derivative.

    Declaration
    public static float3 psrdnoise(float2 pos, float2 per, float rot)
    Parameters
    Type Name Description
    float2 pos

    Input (x,y) coordinate.

    float2 per

    The x and y period, where per.x is a positive integer and per.y is a positive even integer.

    Single rot

    Angle to rotate the gradients.

    Returns
    Type Description
    float3

    The first component of the 3-element return vector is the noise value, and the second and third components are the x and y partial derivatives.

    psrdnoise(float2, float2)

    2-D tiling simplex noise with fixed gradients and analytical derivative.

    Declaration
    public static float3 psrdnoise(float2 pos, float2 per)
    Parameters
    Type Name Description
    float2 pos

    Input (x,y) coordinate.

    float2 per

    The x and y period, where per.x is a positive integer and per.y is a positive even integer.

    Returns
    Type Description
    float3

    The first component of the 3-element return vector is the noise value, and the second and third components are the x and y partial derivatives.

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Tuesday, March 29, 2022
    Terms of use