From 589bfb5cad0052856077ce867f3858ca3741d95d Mon Sep 17 00:00:00 2001 From: Mel Date: Sun, 23 Oct 2022 01:16:10 +0200 Subject: Noisy world generation with broken chunk borders --- src/Math/Noise.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/Math/Noise.hpp (limited to 'src/Math/Noise.hpp') 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 -- cgit 1.4.1