Skip to content
Kelvin edited this page Jun 11, 2017 · 12 revisions
Module

Noise

Generate and compose commonly used procedural noise patterns and distributions.


Symbols

Protocols

protocol [Noise](protocol Noise)

A procedural noise generator.

Structures

struct [SimplexNoise2D](struct SimplexNoise2D)

A type of two-dimensional gradient noise (sometimes called Perlin noise), suitable for texturing two-dimensional planes. Simplex noise is supported in the library mainly because it has historical significance; it has since been superseded by the less popular, but more powerful and more efficient SuperSimplex noise.

struct [SuperSimplexNoise2D](struct SuperSimplexNoise2D)

A type of two-dimensional gradient noise (sometimes called Perlin noise), suitable for texturing two-dimensional planes. Super-simplex noise is an improved version of simplex noise which runs faster and scales better to higher dimensions.

struct [SuperSimplexNoise3D](struct SuperSimplexNoise3D)

A type of three-dimensional gradient noise (sometimes called Perlin noise), suitable for texturing arbitrary three-dimensional objects.

struct [CellNoise2D](struct CellNoise2D)

A type of two-dimensional cellular noise (sometimes called Worley noise, or Voronoi noise), suitable for texturing two-dimensional planes.

struct [CellNoise3D](struct CellNoise3D)

A type of three-dimensional cellular noise (sometimes called Worley noise, or Voronoi noise), suitable for texturing arbitrary three-dimensional objects.

struct [DiskSampler2D](struct DiskSampler2D)

A point noise generator capable of producing uniform and roughly-evenly spaced pseudo-random point distributions in the plane. Disk sampling is sometimes referred to as Poisson sampling.

struct [FBM](struct FBM)

A generic fractal noise generator, capable of overlaying multiple instances of procedural noise at increasing frequencies.

struct [PermutationTable](struct PermutationTable)

An 8-bit permutation table useful for generating pseudo-random hash values.

struct [RandomXorshift](struct RandomXorshift)

A cryptographically unsecure 128-bit Xorshift pseudo-random number generator.

API reference

1.0.0

Clone this wiki locally