[][src]Module doryen_extra::noise

Noise generation.

This module provides several ways to generate Perlin noise and other derived noises. It can handle noise functions from 1 to 4 dimensions.

Usage examples:

  • 1D noise : the variation of a torch intensity
  • 2D fbm : height field generation or clouds
  • 3D fbm : animated smoke

Choosing a noise type

The default choice should be Simplex. It's much faster than Perlin, especially in 4 dimensions. It has a better contrast too.

Structs

Noise

A struct representing a noise generator algorithm and its parameters.

Constants

DEFAULT_LACUNARITY

The default lacunarity value.

MAX_DIMENSIONS

The maximum number of dimensions supported.

MAX_OCTAVES

The maximum number of octaves supported.