Track foliage mask value keys in ViewportHost

This commit is contained in:
2026-05-02 04:14:10 +02:00
parent c7f3ad78f7
commit 5cd2d2fa9f

View File

@@ -9764,6 +9764,11 @@ export class ViewportHost {
dirtyBounds: initialStamp.dirtyBounds, dirtyBounds: initialStamp.dirtyBounds,
heightSampleIndices: new Set(initialStamp.heightSampleIndices), heightSampleIndices: new Set(initialStamp.heightSampleIndices),
paintWeightIndices: new Set(initialStamp.paintWeightIndices), paintWeightIndices: new Set(initialStamp.paintWeightIndices),
foliageMaskValueKeys: new Set(
initialStamp.foliageMaskValueIndices.map((entry) =>
createTerrainFoliageMaskValueKey(entry.layerId, entry.index)
)
),
referenceHeight, referenceHeight,
lastAppliedPoint: { lastAppliedPoint: {
x: hit.point.x, x: hit.point.x,