File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments