Perlin Noise
A widely used noise function.
Original article [An Image Synthesizer, Ken Perlin, SIGGRAPH 85]
Continuous Pseudo-random function
- - Spatial variations are continuous, but non periodic
- - Function can be evaluated at any point - deterministic
Creating a smooth function
- - Compute pseudo-random gradient at each sample point
-
-
-
- ex. float hash(float n) { return fract(sin(n) * 1e4); }
- - Interpolate smooth cubic curve between each points
(Algorithm for nD: Simplex noise)