xzw 2 years ago
parent
commit
962f898edc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/custom/materials/ModelTextureMaterial.js

+ 1 - 1
src/custom/materials/ModelTextureMaterial.js

@@ -401,7 +401,7 @@ export default class ModelTextureMaterial extends THREE.RawShaderMaterial {
             this.uniforms.ceilHeight0.value = this.pano0.getCeilHeight() - this.pano0.position.z  
         }
         if(this.pano1){ 
-            this.uniforms.depthMap1.value = this.pano1.entered ? this.pano1.depthTex : null;
+            this.uniforms.depthMap1.value = this.pano1.depthTex  //pano1还没entered时也需要,可能在飞入
             this.uniforms.cameraHeight1.value = this.pano1.floorPosition.distanceTo(this.pano1.position)
             this.uniforms.ceilHeight1.value = this.pano1.getCeilHeight() - this.pano1.position.z  
         }