Search Results for

    Show / Hide Table of Contents

    Class Noise

    Collection of various noise functions (eg. Perlin, Worley, Voronoi).

    Inheritance
    System.Object
    Noise
    Namespace: FlaxEngine.Utilities
    Assembly: FlaxEngine.CSharp.dll
    Syntax
    [Unmanaged]
    public static class Noise : Object

    Methods

    CustomNoise(Float3)

    Custom noise function (3D -> 1D).

    Declaration
    [Unmanaged]
    public static float CustomNoise(Float3 p)
    Parameters
    Float3 p

    Point on a 3D grid to sample noise at.

    Returns
    System.Single

    Noise result.

    CustomNoise3D(Float3)

    Custom noise function (3D -> 3D).

    Declaration
    [Unmanaged]
    public static Float3 CustomNoise3D(Float3 p)
    Parameters
    Float3 p

    Point on a 3D grid to sample noise at.

    Returns
    Float3

    Noise result.

    CustomNoise3D(Float3, Int32, Single)

    Custom noise function for forces.

    Declaration
    [Unmanaged]
    public static Float3 CustomNoise3D(Float3 p, int octaves, float roughness)
    Parameters
    Float3 p

    Point on a 3D grid to sample noise at.

    System.Int32 octaves

    Noise octaves count.

    System.Single roughness

    Noise roughness (in range 0-1).

    Returns
    Float3

    Noise result.

    PerlinNoise(Float2)

    Classic Perlin noise.

    Declaration
    [Unmanaged]
    public static float PerlinNoise(Float2 p)
    Parameters
    Float2 p

    Point on a 2D grid to sample noise at.

    Returns
    System.Single

    Noise value (range 0-1).

    PerlinNoise(Float2, Float2)

    Classic Perlin noise with periodic variant (tiling).

    Declaration
    [Unmanaged]
    public static float PerlinNoise(Float2 p, Float2 rep)
    Parameters
    Float2 p

    Point on a 2D grid to sample noise at.

    Float2 rep

    Periodic variant of the noise - period of the noise.

    Returns
    System.Single

    Noise value (range 0-1).

    SimplexNoise(Float2)

    Simplex noise.

    Declaration
    [Unmanaged]
    public static float SimplexNoise(Float2 p)
    Parameters
    Float2 p

    Point on a 2D grid to sample noise at.

    Returns
    System.Single

    Noise value (range 0-1).

    VoronoiNoise(Float2)

    Voronoi noise (X=minDistToCell, Y=randomColor, Z=minEdgeDistance).

    Declaration
    [Unmanaged]
    public static Float3 VoronoiNoise(Float2 p)
    Parameters
    Float2 p

    Point on a 2D grid to sample noise at.

    Returns
    Float3

    Noise result with: X=minDistToCell, Y=randomColor, Z=minEdgeDistance.

    WorleyNoise(Float2)

    Worley noise (cellar noise with standard 3x3 search window for F1 and F2 values).

    Declaration
    [Unmanaged]
    public static Float2 WorleyNoise(Float2 p)
    Parameters
    Float2 p

    Point on a 2D grid to sample noise at.

    Returns
    Float2

    Noise value with: F1 and F2 feature points.

    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat