Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
ftoromanoff committed Jan 17, 2025
1 parent 8716bd7 commit 874efb2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions src/Layer/PointCloudLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,14 +239,12 @@ class PointCloudLayer extends GeometryLayer {
if (this.material) {
this.material.visible = this.visible;
this.material.opacity = this.opacity;
this.material.transparent = this.material.userData.needTransparency[this.material.mode] || this.opacity < 1 || this.material.userData.needTransparency.classTransparency;
this.material.depthWrite = !this.material.userData.needTransparency.classTransparency;
this.material.depthWrite = true;
this.material.size = this.pointSize;
this.material.scale = context.camera.preSSE;
if (this.material.updateUniforms) {
this.material.updateUniforms();
}
this.material.needsUpdate = true;
}

// lookup lowest common ancestor of changeSources
Expand Down
1 change: 1 addition & 0 deletions src/Renderer/PointsMaterial.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ class PointsMaterial extends THREE.ShaderMaterial {
super({
...materialOptions,
fog: true,
transparent: true,
precision: 'highp',
vertexColors: true,
});
Expand Down

0 comments on commit 874efb2

Please sign in to comment.