docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method srdnoise

    srdnoise(float2, float)

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

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

    Input (x,y) coordinate.

    float 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.

    srdnoise(float2)

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

    Declaration
    public static float3 srdnoise(float2 pos)
    Parameters
    Type Name Description
    float2 pos

    Input (x,y) coordinate.

    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.

    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)