1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Add mgv5. New noise code, uses biome API. Eased 3d noise for terrain, caves, blobs

This commit is contained in:
paramat 2014-10-16 12:45:55 +01:00 committed by RealBadAngel
parent d0be27415e
commit 92981b2fee
8 changed files with 629 additions and 3 deletions

View file

@ -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, \