$ ./guess_the_languageGame Dev
Game Dev · hard · #129

Why use Perlin noise for terrain?

float h = Mathf.PerlinNoise(x * 0.1f, y * 0.1f);
  1. Neighbours vary smoothly
  2. Values never repeat at all
  3. It is faster than a lookup
  4. It guarantees flat regions
Gradient noise is continuous, so heights form hills rather than white-noise spikes.
Play Game Dev ▸