summary refs log tree commit diff
path: root/src/Math/Noise.hpp
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2022-10-23 01:16:10 +0200
committerMel <einebeere@gmail.com>2022-10-23 01:16:10 +0200
commit589bfb5cad0052856077ce867f3858ca3741d95d (patch)
tree424d9e11474e27e04222330eea7c64e9d67220bb /src/Math/Noise.hpp
parent403ba87eaf2f6554bc0a83efed7ff78d66dd59a8 (diff)
downloadmeowcraft-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.hpp13
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