xzw 2 년 전
부모
커밋
e65d1b9ad5
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/custom/materials/ModelTextureMaterial.js

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

@@ -274,7 +274,7 @@ let shader = {
                     
                     
                     gl_FragDepthEXT = mix(depth0.y,depth1.y,progress); 
-                    gl_FragDepthEXT = min(1.0, gl_FragDepthEXT);    //防止部分手机出现黑块。ios 16  。 因为我给的超远值超出范围
+                    gl_FragDepthEXT = clamp(gl_FragDepthEXT, 0.0, 1.0);    //防止部分手机出现黑块。ios 16  。 因为我给的超远值超出范围
                     
 
                 #endif