Skip to content

Commit 1938853

Browse files
committed
chore(pointcloud): Hide not required filed in PointCloudDebug, fix clear texture
1 parent e552043 commit 1938853

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

packages/Debug/src/PointCloudDebug.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function setupControllerVisibily(gui, displayMode, sizeMode) {
4040
}
4141

4242
sizeMode = parseInt(sizeMode, 10);
43-
if (sizeMode === PNTS_SIZE_MODE.VALUE) {
43+
if (sizeMode === PNTS_SIZE_MODE.VALUE || sizeMode === PNTS_SIZE_MODE.ATTENUATED) {
4444
getController(gui, 'minAttenuatedSize').hide();
4545
getController(gui, 'maxAttenuatedSize').hide();
4646
} else {

packages/Main/src/Layer/PointCloudLayer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,7 @@ abstract class PointCloudLayer<S extends PointCloudSource = PointCloudSource>
554554
// @ts-expect-error PointsMaterial is not typed yet
555555
const vnt = this.material.visibleNodes;
556556
const data = vnt.image.data;
557+
data.fill(0);
557558
data.set(this._visibilityTextureData.data);
558559
vnt.needsUpdate = true;
559560

0 commit comments

Comments
 (0)