David Catuhe 8 년 전
부모
커밋
a643c3a0de
3개의 변경된 파일13674개의 추가작업 그리고 13675개의 파일을 삭제
  1. 6836 6836
      dist/preview release/babylon.d.ts
  2. 6836 6836
      dist/preview release/babylon.module.d.ts
  3. 2 3
      src/Tools/babylon.dds.ts

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 6836 - 6836
dist/preview release/babylon.d.ts


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 6836 - 6836
dist/preview release/babylon.module.d.ts


+ 2 - 3
src/Tools/babylon.dds.ts

@@ -461,10 +461,9 @@
                             dataLength = width * height * 4;
                             var floatArray: ArrayBufferView;
 
-                            if (engine.badOS) {
+                            if (engine.badOS || (!engine.getCaps().textureHalfFloat && !engine.getCaps().textureFloat)) { // Required because iOS has many issues with float and half float generation
                                 if (bpp === 128) {
-                                    floatArray = DDSTools._GetFloatAsUIntRGBAArrayBuffer(width, height, dataOffset, dataLength, arrayBuffer, i);
-                                    
+                                    floatArray = DDSTools._GetFloatAsUIntRGBAArrayBuffer(width, height, dataOffset, dataLength, arrayBuffer, i);                                    
                                 }
                                 else if (bpp === 64) {
                                     floatArray = DDSTools._GetHalfFloatAsUIntRGBAArrayBuffer(width, height, dataOffset, dataLength, arrayBuffer, i);