PerlinNoise

From Minetest Developer Wiki
Revision as of 21:21, 1 December 2012 by Xyz (talk | contribs) (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> ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

A perlin noise generator. Can be created either via PerlinNoise(seed, octaves, persistence, scale) or minetest.env: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.