docs.unity.cn
    Show / Hide Table of Contents

    Method pnoise

    pnoise(float2, float2)

    Classic Perlin noise, periodic variant

    Declaration
    public static float pnoise(float2 P, float2 rep)
    Parameters
    Type Name Description
    float2 P

    Point on a 2D grid of gradient vectors.

    float2 rep

    Period of repetition.

    Returns
    Type Description
    Single

    Noise value.

    pnoise(float3, float3)

    Classic Perlin noise, periodic variant

    Declaration
    public static float pnoise(float3 P, float3 rep)
    Parameters
    Type Name Description
    float3 P

    Point on a 3D grid of gradient vectors.

    float3 rep

    Period of repetition.

    Returns
    Type Description
    Single

    Noise value.

    pnoise(float4, float4)

    Classic Perlin noise, periodic variant

    Declaration
    public static float pnoise(float4 P, float4 rep)
    Parameters
    Type Name Description
    float4 P

    Point on a 4D grid of gradient vectors.

    float4 rep

    Period of repetition.

    Returns
    Type Description
    Single

    Noise value.

    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