1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-09 00:06:42 +02:00
This commit is contained in:
Justin Lin
2020-03-06 15:24:48 +08:00
parent 02a6c469e8
commit 4c2fe1e3d5
2 changed files with 3 additions and 3 deletions

View File

@@ -1,5 +1,7 @@
use <experimental/_impl/_pnoise_comm.scad>;
function _pnoise1_grad1(hashvalue, x) = (hashvalue % 2 == 0) ? x : -x;
function _pnoise1(x, seed) =
let(
xi = floor(x),

View File

@@ -5,5 +5,3 @@ 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_poise_table(i) = _pnoise_table[i % 256];
function _pnoise1_grad1(hashvalue, x) = (hashvalue % 2 == 0) ? x : -x;