Skip to content

Commit

Permalink
fix(material): fix crop poitn when transparency (to sqaush)
Browse files Browse the repository at this point in the history
  • Loading branch information
ftoromanoff committed Dec 18, 2024
1 parent 8622f8a commit 8c6da4c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Layer/PointCloudLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ class PointCloudLayer extends GeometryLayer {
this.material.visible = this.visible;
this.material.opacity = this.opacity;
this.material.transparent = this.opacity < 1 || this.material.userData.needTransparency[this.material.mode];
this.material.depthWrite = !(this.material.userData.needTransparency[this.material.mode] === true);
this.material.size = this.pointSize;
this.material.scale = context.camera.preSSE;
if (this.material.updateUniforms) {
Expand Down

0 comments on commit 8c6da4c

Please sign in to comment.