class Noise

in global :: Sandbox . Utility

Provides access to coherent noise utilities. All of these functions should return between 0 and 1.


public static float Perlin( float x, float y = 0 )

2D Perlin noise function. For a thread-safe alternative with more options, use .

  • x Input on the X axis.
  • y Input on the Y axis.
  • Returns Resulting noise at given coordinates, in range of 0 to 1.

public static float Perlin( float x, float y, float z )

3D Perlin noise function. For a thread-safe alternative with more options, use .

  • x Input on the X axis.
  • y Input on the Y axis.
  • z Input on the Z axis.
  • Returns Resulting noise at given coordinates, in range of 0 to 1.

public static float Simplex( float x, float y = 0 )

2D Simplex noise function. For a thread-safe alternative with more options, use .

  • x Input on the X axis.
  • y Input on the Y axis.
  • Returns Resulting noise at given coordinates, in range of 0 to 1.

public static float Simplex( float x, float y, float z )

3D Simplex noise function. For a thread-safe alternative with more options, use .

  • x Input on the X axis.
  • y Input on the Y axis.
  • z Input on the Z axis.
  • Returns Resulting noise at given coordinates, in range of 0 to 1.

public static float Fbm( int octaves, float x, float y = 0, float z = 0 )

Fractional Brownian Motion noise, a.k.a. Fractal Perlin noise. For a thread-safe alternative with more options, use with .

  • octaves Number of octaves for the noise. Higher values are slower but produce more detailed results. 3 is a good starting point.
  • x Input on the X axis.
  • y Input on the Y axis.
  • z Input on the Z axis.
  • Returns Resulting noise at given coordinates, in range of 0 to 1.

public static Vector3 FbmVector( int octaves, float x, float y = 0 )

Fractional Brownian Motion noise, a.k.a. Fractal Perlin noise.

  • octaves Number of octaves for the noise. Higher values are slower but produce more detailed results. 3 is a good starting point.
  • x Input on the X axis.
  • y Input on the Y axis.

public static INoiseField ValueField( Noise.Parameters parameters )

Creates a Value noise field, effectively smoothly sampled white noise. Use a for the field to have multiple octaves.

public static INoiseField PerlinField( Noise.Parameters parameters )

Creates a Perlin noise field, which smoothly samples a grid of random gradients. Use a for the field to have multiple octaves.

public static INoiseField SimplexField( Noise.Parameters parameters )

Creates a Simplex noise field, a cheaper gradient noise function similar to . Use a for the field to have multiple octaves.

public Type GetType( )

😔 No documentation found.

public string ToString( )

😔 No documentation found.

public bool Equals( object obj )

😔 No documentation found.

public int GetHashCode( )

😔 No documentation found.