docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method pnoise

    | Improve this Doc View Source

    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
    float

    Noise value.

    | Improve this Doc View Source

    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
    float

    Noise value.

    | Improve this Doc View Source

    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
    float

    Noise value.

    • Improve this Doc
    • View Source
    In This Article
    Back to top
    Copyright © 2026 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)