xzw 5 місяців тому
батько
коміт
d977926b33
2 змінених файлів з 3 додано та 3 видалено
  1. 2 2
      public/lib/potree/potree.js
  2. 1 1
      public/lib/potree/potree.js.map

+ 2 - 2
public/lib/potree/potree.js

@@ -87221,7 +87221,7 @@
 	      this.bound.boundingBox.getSize(this.bound.boundSize);
 	      this.bound.boundingBox.getCenter(this.bound.center);
 	    }
-	    viewer.farWhenShowPano = this.bound.boundSize.length() * 10; //全景漫游时要能看到整个skybox 原本*2的但对于距离特远的数据集需要乘大一些否则会黑面
+	    viewer.farWhenShowPano = Math.max(1000, this.bound.boundSize.length() * 10); //全景漫游时要能看到整个skybox 原本*2的但对于距离特远的数据集需要乘大一些否则会黑面
 
 	    /*  let boundPlane = new THREE.Box3()
 	     boundPlane.expandByPoint(this.bound.boundingBox.min.clone())//最低高度为bound的最低
@@ -87527,7 +87527,7 @@
 	          //}//获取在scale为1时,表现出的大小
 	          //Potree.Utils.makeTexDontResize(child.material.map) 
 	          //console.log(child.name, 'roughness',child.material.roughness,'metalness',child.material.metalness)
-	          fileInfo_.unlit = true;
+
 	          var changeMat = oldMat => {
 	            var mat = oldMat;
 	            if (fileInfo_.unlit && !(oldMat instanceof BasicMaterial) /* || object.fileType == 'glb' */) {

Різницю між файлами не показано, бо вона завелика
+ 1 - 1
public/lib/potree/potree.js.map