1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-09 16:26:47 +02:00

fix neg idx error

This commit is contained in:
Justin Lin
2020-12-10 13:46:54 +08:00
parent 70836f8fee
commit 72585c7f9c

View File

@@ -4,4 +4,4 @@ function _pnoise_fade(t) = pow(t, 3) * (t * (t * 6 - 15) + 10);
function _pnoise_lerp(a, b, t) = a + t * (b - a);
function _pnoise_lookup_pnoise_table(i) = _pnoise_table[i % 256];
function _pnoise_lookup_pnoise_table(i) = _pnoise_table[abs(i % 256)];