Skip to content

Commit 8079613

Browse files
authored
Update sculpt.js
1 parent ba5955b commit 8079613

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

generators/sculpt.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1225,9 +1225,9 @@ export function sculptToGLSL(userProvidedSrc) {
12251225
}
12261226

12271227
function repeatLinear(scale, spacing, counts) {
1228-
ensureDims("repeatSpace", 3, scale);
1229-
ensureDims("repeatSpace", 3, spacing);
1230-
ensureDims("repeatSpace", 3, counts);
1228+
ensureDims("repeatLinear", 3, scale);
1229+
ensureDims("repeatLinear", 3, spacing);
1230+
ensureDims("repeatLinear", 3, counts);
12311231
spacing *= 2 * scale;
12321232
counts -= 1;
12331233
const s = getSpace();
@@ -1247,6 +1247,7 @@ export function sculptToGLSL(userProvidedSrc) {
12471247

12481248
// based on https://mercury.sexy/hg_sdf/
12491249
function repeatRadial(repeats) {
1250+
ensureScalar('repeatRadial', repeats);
12501251
const s = getSpace();
12511252
const p = vec3(s.x, 0, s.z);
12521253
const angle = 2 * PI / repeats;

0 commit comments

Comments
 (0)