mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-11 09:14:29 +02:00
don't require x, y
This commit is contained in:
@@ -6,7 +6,7 @@ size = [30, 30];
|
|||||||
grid_w = 15;
|
grid_w = 15;
|
||||||
amplitude = 1;
|
amplitude = 1;
|
||||||
mesh_w = 0.2;
|
mesh_w = 0.2;
|
||||||
wave_smoothness = 20;
|
wave_smoothness = 2;
|
||||||
thickness = 0.5;
|
thickness = 0.5;
|
||||||
dist = "euclidean"; // [euclidean, manhattan, chebyshev, border]
|
dist = "euclidean"; // [euclidean, manhattan, chebyshev, border]
|
||||||
seed = 51;
|
seed = 51;
|
||||||
@@ -24,7 +24,7 @@ module ripples() {
|
|||||||
px = x * mesh_w,
|
px = x * mesh_w,
|
||||||
py = y * mesh_w,
|
py = y * mesh_w,
|
||||||
nz = nz_worley2(px, py, seed, grid_w, dist)[2],
|
nz = nz_worley2(px, py, seed, grid_w, dist)[2],
|
||||||
n = amplitude * nz_perlin2(nz + px / wave_smoothness, nz + py / wave_smoothness, seed)
|
n = amplitude * nz_perlin2(nz / wave_smoothness, nz / wave_smoothness, seed)
|
||||||
)
|
)
|
||||||
[px, py, n]
|
[px, py, n]
|
||||||
]
|
]
|
||||||
|
Reference in New Issue
Block a user