Documentation ¶
Overview ¶
Simplex noise in 2D, 3D and 4D. Useful for world generation.
Many, many, many thanks to Stefan Gustavson (stegu@itn.liu.se) and optimisations made by Peter Eastman (peastman@drizzle.stanford.edu).
Sources: http://webstaff.itn.liu.se/~stegu76/ http://webstaff.itn.liu.se/~stegu76/simplexnoise/simplexnoise.pdf http://webstaff.itn.liu.se/~stegu76/simplexnoise/SimplexNoise.java
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( F4 float64 = (math.Sqrt(5.0) - 1.0) / 4.0 G4 float64 = (5.0 - math.Sqrt(5.0)) / 20.0 )
Skewing and unskewing factors for 2, 3, and 4 dimensions
Functions ¶
func MultiAt2d ¶
MultiAt2d computes 2D Multi-Octave Simplex noise. For each octave, a higher frequency/lower amplitude function will be added to the original. The higher the persistence [0, 1], the more of each succeeding octave will be added.
func MultiAt3d ¶
MultiAt3d computes 3D Multi-Octave Simplex noise. For each octave, a higher frequency/lower amplitude function will be added to the original. The higher the persistence [0, 1], the more of each succeeding octave will be added.
Types ¶
This section is empty.