|
@@ -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' */) {
|