|
@@ -195,10 +195,8 @@ export class ExtendPointCloudOctree extends PointCloudOctree{
|
|
|
material.fov = camera.fov * (Math.PI / 180);
|
|
|
/* material.screenWidth = renderer.domElement.clientWidth;
|
|
|
material.screenHeight = renderer.domElement.clientHeight; */
|
|
|
- material.resolution = resolution
|
|
|
-
|
|
|
-
|
|
|
- material.spacing = this.pcoGeometry.spacing; // * Math.max(this.scale.x, this.scale.y, this.scale.z); //应该不需要
|
|
|
+ material.resolution = resolution
|
|
|
+ material.spacing = this.pcoGeometry.spacing; // * Math.max(this.scale.x, this.scale.y, this.scale.z);
|
|
|
material.near = camera.near;
|
|
|
material.far = camera.far;
|
|
|
material.uniforms.octreeSize.value = this.pcoGeometry.boundingBox.getSize(new THREE.Vector3()).x;
|