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:
@@ -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)];
|
Reference in New Issue
Block a user