summaryrefslogtreecommitdiff
path: root/thirdparty/noise/patches
diff options
context:
space:
mode:
authorHendrik Brucker <hendrik.brucker@mail.de>2022-03-20 14:53:45 +0100
committerHendrik Brucker <hendrik.brucker@mail.de>2022-03-20 14:53:45 +0100
commit2a55f10e8be2d3a9ffcbb57ab6dd278419c64b37 (patch)
tree90bf78ae0c5bfa29092398a0dd10ea2a304462ec /thirdparty/noise/patches
parentc251ea01db289feb2f0b237eb3d865e28b0fa1cb (diff)
Add FastNoiseLite / general noise overhaul
- replace OpenSimplexNoise Co-authored-by: Cory Petkovsek <tinmanjuggernaut@users.noreply.github.com>
Diffstat (limited to 'thirdparty/noise/patches')
-rw-r--r--thirdparty/noise/patches/FastNoiseLite.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/thirdparty/noise/patches/FastNoiseLite.patch b/thirdparty/noise/patches/FastNoiseLite.patch
new file mode 100644
index 0000000000..acb1edfd73
--- /dev/null
+++ b/thirdparty/noise/patches/FastNoiseLite.patch
@@ -0,0 +1,18 @@
+--- orig/FastNoiseLite.h 1900-01-00 00:00:00 +0000
++++ noise/FastNoiseLite.h 1900-01-00 00:00:00 +0000
+@@ -52,6 +52,8 @@
+
+ #include <cmath>
+
++namespace fastnoiselite{
++
+ class FastNoiseLite
+ {
+ public:
+@@ -2583,4 +2585,5 @@
+ -0.7870349638f, 0.03447489231f, 0.6159443543f, 0, -0.2015596421f, 0.6859872284f, 0.6991389226f, 0, -0.08581082512f, -0.10920836f, -0.9903080513f, 0, 0.5532693395f, 0.7325250401f, -0.396610771f, 0, -0.1842489331f, -0.9777375055f, -0.1004076743f, 0, 0.0775473789f, -0.9111505856f, 0.4047110257f, 0, 0.1399838409f, 0.7601631212f, -0.6344734459f, 0, 0.4484419361f, -0.845289248f, 0.2904925424f, 0
+ };
+
+-#endif
++}
++#endif // namespace fastnoiselite