diff options
author | paramat <mat.gregory@virginmedia.com> | 2014-10-16 12:45:55 +0100 |
---|---|---|
committer | RealBadAngel <maciej.kasatkin@o2.pl> | 2014-11-08 21:37:26 +0100 |
commit | 92981b2fee19fd04e2a49533ffa1f778bff6ca72 (patch) | |
tree | de0ddff440cdd82960af1ca3a02641dd0ccc0d42 /src/noise.h | |
parent | d0be27415eb9386b2367ab798268da6fbe8b7a68 (diff) | |
download | minetest-92981b2fee19fd04e2a49533ffa1f778bff6ca72.tar.gz minetest-92981b2fee19fd04e2a49533ffa1f778bff6ca72.tar.bz2 minetest-92981b2fee19fd04e2a49533ffa1f778bff6ca72.zip |
Add mgv5. New noise code, uses biome API. Eased 3d noise for terrain, caves, blobs
Diffstat (limited to 'src/noise.h')
-rw-r--r-- | src/noise.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/noise.h b/src/noise.h index 34dcb7374..aa489b2c0 100644 --- a/src/noise.h +++ b/src/noise.h @@ -152,6 +152,8 @@ inline float easeCurve(float t) { return t * t * t * (t * (6.f * t - 15.f) + 10.f); } +float contour(float v); + #define NoisePerlin2D(np, x, y, s) \ ((np)->offset + (np)->scale * noise2d_perlin( \ (float)(x) / (np)->spread.X, \ |