|
@@ -50486,7 +50486,8 @@
|
|
|
}
|
|
|
[this.edge, this.endCaps[0].children[0]].forEach(e => {
|
|
|
e.material.color.set(color);
|
|
|
- e.material.uniforms.maxClipFactor.value = this.selectStates.click ? 0.3 : this.selectStates.hover ? 0.6 : 1;
|
|
|
+ e.material.uniforms.maxClipFactor.value = this.selectStates.click ? 0.4 : this.selectStates.hover ? 0.6 : depthProps.maxClipFactor;
|
|
|
+ e.material.uniforms.occlusionDistance.value = this.selectStates.click ? 0.6 : this.selectStates.hover ? 0.7 : depthProps.occlusionDistance;
|
|
|
});
|
|
|
}
|
|
|
removeMarker(index) {
|
|
@@ -63171,7 +63172,8 @@
|
|
|
if (Potree.settings.fastTran && viewer.images360.fastTranMaskPass.enabled) {
|
|
|
viewer.images360.fastTranMaskPass.render();
|
|
|
}
|
|
|
- if (viewer.objs.children.length == 0 || !params.useModelOnRT) return; //没有模型需要绘制遮挡
|
|
|
+ //if( viewer.objs.children.length == 0 || !params.useModelOnRT ) return //没有模型需要绘制遮挡
|
|
|
+ if (viewer.objs.children.filter(e => !e.is4dkkModel && e.visible).length == 0) return; //需要绘制遮挡的小物体个数为0
|
|
|
}
|
|
|
}
|
|
|
}
|