diff options
| author | Mel <einebeere@gmail.com> | 2022-10-23 01:16:10 +0200 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2022-10-23 01:16:10 +0200 |
| commit | 589bfb5cad0052856077ce867f3858ca3741d95d (patch) | |
| tree | 424d9e11474e27e04222330eea7c64e9d67220bb /src/Math/Noise.hpp | |
| parent | 403ba87eaf2f6554bc0a83efed7ff78d66dd59a8 (diff) | |
| download | meowcraft-589bfb5cad0052856077ce867f3858ca3741d95d.tar.zst meowcraft-589bfb5cad0052856077ce867f3858ca3741d95d.zip | |
Noisy world generation with broken chunk borders
Diffstat (limited to 'src/Math/Noise.hpp')
| -rw-r--r-- | src/Math/Noise.hpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Math/Noise.hpp b/src/Math/Noise.hpp new file mode 100644 index 0000000..80ceb47 --- /dev/null +++ b/src/Math/Noise.hpp @@ -0,0 +1,13 @@ +#pragma once + +#include "Vector.hpp" + +#define NOISE_SEED_SIZE 64 + +namespace Math { + +extern const uint8_t noise_seed[NOISE_SEED_SIZE][NOISE_SEED_SIZE]; + +float noise2d(Vector<2> pos); + +} \ No newline at end of file |
