David Catuhe 8 years ago
parent
commit
9a8de4043c

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


File diff suppressed because it is too large
+ 19 - 19
dist/preview release/customConfigurations/minimalViewer/babylon.js


+ 1 - 1
dist/preview release/customConfigurations/minimalViewer/babylon.max.js

@@ -33143,7 +33143,7 @@ var BABYLON;
                             if (!info.isCompressed && info.isFourCC) {
                                 dataLength = width * height * 4;
                                 var floatArray;
-                                if (engine.badOS) {
+                                if (engine.badOS || (!engine.getCaps().textureHalfFloat && !engine.getCaps().textureFloat)) {
                                     if (bpp === 128) {
                                         floatArray = DDSTools._GetFloatAsUIntRGBAArrayBuffer(width, height, dataOffset, dataLength, arrayBuffer, i);
                                     }

File diff suppressed because it is too large
+ 4763 - 4763
dist/preview release/customConfigurations/minimalViewer/babylon.module.d.ts


File diff suppressed because it is too large
+ 1 - 1
dist/preview release/gui/babylon.gui.min.js


File diff suppressed because it is too large
+ 263 - 263
dist/preview release/inspector/babylon.inspector.bundle.js


File diff suppressed because it is too large
+ 3 - 3
dist/preview release/inspector/babylon.inspector.min.js


File diff suppressed because it is too large
+ 2 - 2
dist/preview release/loaders/babylon.glTF1FileLoader.min.js


+ 1 - 0
dist/preview release/loaders/babylon.glTF2FileLoader.d.ts

@@ -347,6 +347,7 @@ declare module BABYLON.GLTF2 {
         * @param uri: the uri to decode
         */
         static DecodeBase64(uri: string): ArrayBuffer;
+        static ForEach(view: Uint16Array | Uint32Array | Float32Array, func: (nvalue: number, index: number) => void): void;
         /**
         * Returns the wrap mode of the texture
         * @param mode: the mode value

+ 7 - 2
dist/preview release/loaders/babylon.glTF2FileLoader.js

@@ -687,11 +687,11 @@ var BABYLON;
                             var values = data;
                             switch (semantic) {
                                 case "NORMAL":
-                                    values.forEach(function (v, i) { return values[i] += vertexData.normals[i]; });
+                                    GLTF2.GLTFUtils.ForEach(values, function (v, i) { return values[i] += vertexData.normals[i]; });
                                     babylonMorphTarget.setNormals(values);
                                     break;
                                 case "POSITION":
-                                    values.forEach(function (v, i) { return values[i] += vertexData.positions[i]; });
+                                    GLTF2.GLTFUtils.ForEach(values, function (v, i) { return values[i] += vertexData.positions[i]; });
                                     babylonMorphTarget.setPositions(values);
                                     break;
                                 case "TANGENT":
@@ -1191,6 +1191,11 @@ var BABYLON;
                 }
                 return bufferView.buffer;
             };
+            GLTFUtils.ForEach = function (view, func) {
+                for (var index = 0; index < view.length; index++) {
+                    func(view[index], index);
+                }
+            };
             /**
             * Returns the wrap mode of the texture
             * @param mode: the mode value

File diff suppressed because it is too large
+ 1 - 1
dist/preview release/loaders/babylon.glTF2FileLoader.min.js


+ 1 - 0
dist/preview release/loaders/babylon.glTFFileLoader.d.ts

@@ -842,6 +842,7 @@ declare module BABYLON.GLTF2 {
         * @param uri: the uri to decode
         */
         static DecodeBase64(uri: string): ArrayBuffer;
+        static ForEach(view: Uint16Array | Uint32Array | Float32Array, func: (nvalue: number, index: number) => void): void;
         /**
         * Returns the wrap mode of the texture
         * @param mode: the mode value

+ 7 - 2
dist/preview release/loaders/babylon.glTFFileLoader.js

@@ -2840,11 +2840,11 @@ var BABYLON;
                             var values = data;
                             switch (semantic) {
                                 case "NORMAL":
-                                    values.forEach(function (v, i) { return values[i] += vertexData.normals[i]; });
+                                    GLTF2.GLTFUtils.ForEach(values, function (v, i) { return values[i] += vertexData.normals[i]; });
                                     babylonMorphTarget.setNormals(values);
                                     break;
                                 case "POSITION":
-                                    values.forEach(function (v, i) { return values[i] += vertexData.positions[i]; });
+                                    GLTF2.GLTFUtils.ForEach(values, function (v, i) { return values[i] += vertexData.positions[i]; });
                                     babylonMorphTarget.setPositions(values);
                                     break;
                                 case "TANGENT":
@@ -3344,6 +3344,11 @@ var BABYLON;
                 }
                 return bufferView.buffer;
             };
+            GLTFUtils.ForEach = function (view, func) {
+                for (var index = 0; index < view.length; index++) {
+                    func(view[index], index);
+                }
+            };
             /**
             * Returns the wrap mode of the texture
             * @param mode: the mode value

File diff suppressed because it is too large
+ 2 - 2
dist/preview release/loaders/babylon.glTFFileLoader.min.js


File diff suppressed because it is too large
+ 1 - 1
dist/preview release/loaders/babylon.objFileLoader.min.js


File diff suppressed because it is too large
+ 1 - 1
dist/preview release/materialsLibrary/babylon.customMaterial.min.js


File diff suppressed because it is too large
+ 1 - 1
dist/preview release/materialsLibrary/babylon.waterMaterial.min.js


File diff suppressed because it is too large
+ 1 - 1
dist/preview release/postProcessesLibrary/babylon.asciiArtPostProcess.min.js


File diff suppressed because it is too large
+ 1 - 1
dist/preview release/postProcessesLibrary/babylon.digitalRainPostProcess.min.js