auto-git:

[change] tests/domain/foliage-scatter.test.ts
This commit is contained in:
2026-05-02 04:38:34 +02:00
parent aa19221b10
commit 2eb13319c8

View File

@@ -99,7 +99,10 @@ function createMaskedTerrain(options: {
sampleCountX,
sampleCountZ,
cellSize: options.cellSize ?? 1,
heights: options.heights ?? new Array<number>(sampleCount).fill(0),
heights:
options.heights !== undefined
? [...options.heights]
: new Array<number>(sampleCount).fill(0),
foliageMasks:
options.includeMask === false
? {}