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:
parent
d0be27415e
commit
92981b2fee
8 changed files with 629 additions and 3 deletions
|
@ -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, \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue