Skip to content

Commit 5f5ef76

Browse files
committed
Fix bounding for Simplex 2D, Super Simplex not yet fixed
1 parent c55d555 commit 5f5ef76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/FastNoise/Generators/Simplex.inl

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class FastSIMD::DispatchClass<FastNoise::Simplex, SIMD> final : public virtual F
5454
float32v gradientRampValue1 = GetGradientDotPerlin( HashPrimes( seed, FS::MaskedAdd( xGreaterEqualY, xPrimedBase, int32v( Primes::X ) ), FS::InvMaskedAdd( xGreaterEqualY, yPrimedBase, int32v( Primes::Y ) ) ), dx1, dy1 );
5555
float32v gradientRampValue2 = GetGradientDotPerlin( HashPrimes( seed, xPrimedBase + int32v( Primes::X ), yPrimedBase + int32v( Primes::Y ) ), dx2, dy2 );
5656

57-
constexpr double kBounding = 49.918426513671875;
57+
constexpr double kBounding = 38.283687591552734375;
5858

5959
return this->ScaleOutput( FS::FMulAdd( gradientRampValue0, falloff0, FS::FMulAdd( gradientRampValue1, falloff1, gradientRampValue2 * falloff2 ) ),
6060
-1 / kBounding, 1 / kBounding );

0 commit comments

Comments
 (0)