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

File diff suppressed because it is too large
+ 6836 - 6836
dist/preview release/babylon.d.ts


File diff suppressed because it is too large
+ 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);