summaryrefslogtreecommitdiff
path: root/src/noise.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-02-26 20:16:47 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-02-26 20:16:47 +0200
commit48a772b3c6388cbe7f9003557f27cc2cf51b8fe8 (patch)
tree774a5316f5bc7448796aa2620ffabdb552dcbdf4 /src/noise.h
parentec3cb2d1d75aa9dd33360037ccfccbb32c854642 (diff)
downloadminetest-48a772b3c6388cbe7f9003557f27cc2cf51b8fe8.tar.gz
minetest-48a772b3c6388cbe7f9003557f27cc2cf51b8fe8.tar.bz2
minetest-48a772b3c6388cbe7f9003557f27cc2cf51b8fe8.zip
3d noise stuff
Diffstat (limited to 'src/noise.h')
-rw-r--r--src/noise.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/noise.h b/src/noise.h
index c069046c3..63974e86a 100644
--- a/src/noise.h
+++ b/src/noise.h
@@ -24,11 +24,16 @@ double easeCurve(double t);
// Return value: -1 ... 1
double noise2d(int x, int y, int seed);
+double noise3d(int x, int y, int z, int seed);
double noise2d_gradient(double x, double y, int seed);
+double noise3d_gradient(double x, double y, double z, int seed);
double noise2d_perlin(double x, double y, int seed,
int octaves, double persistence);
+double noise3d_perlin(double x, double y, double z, int seed,
+ int octaves, double persistence);
+
#endif