|
@@ -73619,6 +73619,7 @@ void main()
|
|
|
if(MathUtils.isPowerOfTwo(map.image.width ) && MathUtils.isPowerOfTwo(map.image.height ))return
|
|
|
map.wrapS = map.wrapT = ClampToEdgeWrapping; //原默认 RepeatWrapping
|
|
|
map.minFilter = LinearFilter; // or THREE.NearestFilter 原默认 LinearMipmapLinearFilter
|
|
|
+ map.generateMipmaps = false;
|
|
|
map.needsUpdate = true;
|
|
|
};
|
|
|
|
|
@@ -128716,7 +128717,13 @@ ENDSEC
|
|
|
//为了防止chrome出现报错 The source image could not be decoded. 导致reject,重新写贴图加载方式: xzw
|
|
|
|
|
|
parser.textureLoader.load(sourceURI, (tex)=>{
|
|
|
- tex.minFilter = THREE.LinearMipmapLinearFilter; //原本:NearestMipMapNearestFilter 闪烁
|
|
|
+
|
|
|
+ THREE.LinearMipmapLinearFilter; //原本:NearestMipMapNearestFilter 闪烁
|
|
|
+ //有一个block文件离远了有裂缝,只能使用LinearFilter,但是这样似乎更卡,且锯齿
|
|
|
+ /* tex.minFilter = THREE.LinearFilter
|
|
|
+ tex.generateMipmaps = false */
|
|
|
+
|
|
|
+
|
|
|
|
|
|
Potree.Utils.makeTexDontResize(tex);
|
|
|
//console.log(tex.image.width, tex.image.height)
|
|
@@ -147924,11 +147931,13 @@ ENDSEC
|
|
|
|
|
|
if(!ifForce) ifForce = tileset.nextForceUpdate;
|
|
|
tileset.nextForceUpdate = false;
|
|
|
- if(tileset.needRenderNext){
|
|
|
+ if(tileset.needRenderNext){//必须在下一帧渲染刷新否则无法显示
|
|
|
viewer.dispatchEvent('content_changed');
|
|
|
- }
|
|
|
-
|
|
|
+ }
|
|
|
tileset.needRenderNext = ifForce;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
if (tileset && (timer >= UPDATE_INTERVAL || ifForce)) {
|
|
|
if (!lastRootTransform.equals(root.matrixWorld)) {
|