Flip comparison

As per request from @duplexsystem
This commit is contained in:
astrsh 2024-09-25 14:02:54 +10:00 committed by astrsh
parent c374c2d5ef
commit 589cf83c38

View File

@ -62,7 +62,7 @@ public class OpenSimplex2Sampler extends SimplexStyleSampler {
double x1 = x0 + (G2 - 1); double x1 = x0 + (G2 - 1);
double y1 = y0 + G2; double y1 = y0 + G2;
double b = 0.5 - x1 * x1 - y1 * y1; 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); value += (b * b) * (b * b) * gradCoord(seed, i + PRIME_X, j, x1, y1);
} }
} }