Skip to content

Commit 2de0bca

Browse files
Add default falloff handling to strands noiseDetail override
1 parent eaed51d commit 2de0bca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/strands/strands_api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export function initGlobalStrandsAPI(p5, fn, strandsContext) {
165165
strandsContext._noiseOctaves = null;
166166
strandsContext._noiseAmpFalloff = null;
167167

168-
fn.noiseDetail = function (lod, falloff) {
168+
fn.noiseDetail = function (lod, falloff = 0.5) {
169169
if (!strandsContext.active) {
170170
return originalNoiseDetail.apply(this, arguments);
171171
}

0 commit comments

Comments
 (0)