Difference between revisions of "PerlinNoise"

From Minetest Developer Wiki
Jump to navigation Jump to search
m (add a link to an example)
Line 5: Line 5:
 
* <source enclose="none">get3d(pos)</source> — 3d noise value at <source enclose="none">pos={x=,y=,z=}</source>
 
* <source enclose="none">get3d(pos)</source> — 3d noise value at <source enclose="none">pos={x=,y=,z=}</source>
  
{{MissingExample}}
+
== Examples ==
 +
[[Voxel_Manipulator#Example]]
  
 
[[Category:Objects]]
 
[[Category:Objects]]

Revision as of 18:14, 6 May 2014

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=}

Examples

Voxel_Manipulator#Example