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