From 6ec0ab89b04b45ffe660bfe61b70265b1e1526ff Mon Sep 17 00:00:00 2001 From: astrsh Date: Wed, 25 Sep 2024 14:02:54 +1000 Subject: [PATCH] Flip comparison As per request from @duplexsystem --- .../noise/samplers/noise/simplex/OpenSimplex2Sampler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/addons/config-noise-function/src/main/java/com/dfsek/terra/addons/noise/samplers/noise/simplex/OpenSimplex2Sampler.java b/common/addons/config-noise-function/src/main/java/com/dfsek/terra/addons/noise/samplers/noise/simplex/OpenSimplex2Sampler.java index 862a665c8..e86ec2234 100644 --- a/common/addons/config-noise-function/src/main/java/com/dfsek/terra/addons/noise/samplers/noise/simplex/OpenSimplex2Sampler.java +++ b/common/addons/config-noise-function/src/main/java/com/dfsek/terra/addons/noise/samplers/noise/simplex/OpenSimplex2Sampler.java @@ -62,7 +62,7 @@ public double getNoiseRaw(long sl, double x, double y) { double x1 = x0 + (G2 - 1); double y1 = y0 + G2; double b = 0.5 - x1 * x1 - y1 * y1; - if(b <= 0) { + if(b > 0) { value += (b * b) * (b * b) * gradCoord(seed, i + PRIME_X, j, x1, y1); } }