Difference between revisions of "PerlinNoise"
Jump to navigation
Jump to search
Hybrid Dog (talk | contribs) |
Hybrid Dog (talk | contribs) |
||
Line 1: | Line 1: | ||
A [http://en.wikipedia.org/wiki/Perlin_noise perlin noise] generator. Can be created either via <source enclose="none">PerlinNoise(seed, octaves, persistence, scale)</source> or <source enclose="none">minetest.get_perlin(seeddiff, octaves, persistence, scale)</source>. | A [http://en.wikipedia.org/wiki/Perlin_noise perlin noise] generator. Can be created either via <source enclose="none">PerlinNoise(seed, octaves, persistence, scale)</source> or <source enclose="none">minetest.get_perlin(seeddiff, octaves, persistence, scale)</source>. | ||
+ | Note that [[PerlinNoiseMap]] works faster. | ||
== Methods == | == Methods == |
Revision as of 09:00, 11 July 2015
A perlin noise generator. Can be created either via PerlinNoise(seed, octaves, persistence, scale)
or minetest.get_perlin(seeddiff, octaves, persistence, scale)
.
Note that PerlinNoiseMap works faster.
Methods
get2d(pos)
— 2d noise value atpos={x=,y=}
get3d(pos)
— 3d noise value atpos={x=,y=,z=}