Difference between revisions of "PerlinNoise"

From Minetest Developer Wiki
Jump to navigation Jump to search
(Created page with "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> ...")
 
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.env: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>.
  
 
== Methods ==
 
== Methods ==

Revision as of 12:25, 11 September 2013

A perlin noise generator. Can be created either via PerlinNoise(seed, octaves, persistence, scale) or minetest.get_perlin(seeddiff, octaves, persistence, scale).

Methods

  • get2d(pos) — 2d noise value at pos={x=,y=}
  • get3d(pos) — 3d noise value at pos={x=,y=,z=}
Mbox information.png This article is missing examples.
Feel free to add them.