From 92981b2fee19fd04e2a49533ffa1f778bff6ca72 Mon Sep 17 00:00:00 2001 From: paramat Date: Thu, 16 Oct 2014 12:45:55 +0100 Subject: Add mgv5. New noise code, uses biome API. Eased 3d noise for terrain, caves, blobs --- src/noise.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/noise.h') 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, \ -- cgit v1.2.3