Expand description
Perlin noise in 2D and 3D. Translated from the reference Java implementation at https://mrl.cs.nyu.edu/~perlin/noise/ and https://mrl.cs.nyu.edu/~perlin/paper445.pdf
Functionsยง
- perlin_
2d - Returns the evaluation of perlin noise at position (x, y) This function does not allocate It uses the improved implementation of perlin noise whose reference implementation is available here: https://mrl.cs.nyu.edu/~perlin/noise/ The modifications are:
- perlin_
3d - Returns the evaluation of perlin noise at position (x, y, z)
This function does not allocate
It uses the improved implementation of perlin noise
whose reference implementation is available here: https://mrl.cs.nyu.edu/~perlin/noise/
The only modification was the simplification of the function
grad
to avoid some code branches (but does not change the end result).