Skip to content

Commit

Permalink
fix: blending
Browse files Browse the repository at this point in the history
  • Loading branch information
leaftail1880 committed Oct 30, 2024
1 parent 0a429f3 commit b3b1d89
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/modules/world-edit/utils/blending.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,19 @@ export function skipForBlending(
} else {
// Blending
const toBlend = radius - blending
const vectorId = Vector.string(vector)

if (radius > toBlend) {
const vectorId = Vector.string(vector)
if (blendStorage.has(vectorId)) return true

const blendingFactor = 1 + factor * 0.01
if (Math.randomInt(toBlend, radius) < distance * blendingFactor) {
blendStorage.add(vectorId)
return true
}
} else {
blendStorage.add(vectorId)
return true
}
}
}

0 comments on commit b3b1d89

Please sign in to comment.