1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-11 01:04:07 +02:00
This commit is contained in:
Justin Lin
2020-03-29 10:18:54 +08:00
parent 4dee6fd080
commit 8e00f0d863

View File

@@ -12,8 +12,7 @@ function _neighbors(fcord, seed, dim, m, n) = [
ny = fcord[1] + y,
sd_base = nx + ny * dim,
sd1 = _lookup_noise_table(seed + sd_base),
sd2 = _lookup_noise_table(sd1 * 255 + sd_base)
,
sd2 = _lookup_noise_table(sd1 * 255 + sd_base),
nbr = [(nx + sd1) * m, (ny + sd2) * n]
)
nbr