David Catuhe 7 lat temu
rodzic
commit
bad80dfd33

Plik diff jest za duży
+ 6196 - 6196
dist/preview release/babylon.d.ts


Plik diff jest za duży
+ 5 - 5
dist/preview release/babylon.js


+ 3 - 0
dist/preview release/babylon.max.js

@@ -10204,6 +10204,9 @@ var BABYLON;
                 if (isKTX) {
                     _this.createTexture(urlArg, noMipmap, invertY, scene, samplingMode, null, onError, buffer, texture);
                 }
+                else if ((isTGA || isDDS) && BABYLON.Tools.UseFallbackTexture) {
+                    _this.createTexture(BABYLON.Tools.fallbackTexture, noMipmap, invertY, scene, samplingMode, null, onError, buffer, texture);
+                }
                 else if (onError) {
                     onError();
                 }

Plik diff jest za duży
+ 6196 - 6196
dist/preview release/babylon.module.d.ts


Plik diff jest za duży
+ 5 - 5
dist/preview release/babylon.worker.js


Plik diff jest za duży
+ 5571 - 5571
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.d.ts


Plik diff jest za duży
+ 5 - 5
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.js


+ 3 - 0
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.max.js

@@ -10204,6 +10204,9 @@ var BABYLON;
                 if (isKTX) {
                     _this.createTexture(urlArg, noMipmap, invertY, scene, samplingMode, null, onError, buffer, texture);
                 }
+                else if ((isTGA || isDDS) && BABYLON.Tools.UseFallbackTexture) {
+                    _this.createTexture(BABYLON.Tools.fallbackTexture, noMipmap, invertY, scene, samplingMode, null, onError, buffer, texture);
+                }
                 else if (onError) {
                     onError();
                 }

Plik diff jest za duży
+ 5571 - 5571
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.module.d.ts


+ 1 - 3
src/Engine/babylon.engine.ts

@@ -2978,9 +2978,7 @@
                 // fallback for when compressed file not found to try again.  For instance, etc1 does not have an alpha capable type
                 if (isKTX) {
                     this.createTexture(urlArg, noMipmap, invertY, scene, samplingMode, null, onError, buffer, texture);
-                } else if (isTGA && BABYLON.Tools.UseFallbackTexture) {
-                    this.createTexture(BABYLON.Tools.fallbackTexture, noMipmap, invertY, scene, samplingMode, null, onError, buffer, texture);
-                } else if (isDDS && BABYLON.Tools.UseFallbackTexture) {
+                } else if ((isTGA || isDDS )&& BABYLON.Tools.UseFallbackTexture) {
                     this.createTexture(BABYLON.Tools.fallbackTexture, noMipmap, invertY, scene, samplingMode, null, onError, buffer, texture);
                 } else if (onError) {
                     onError();

+ 1 - 0
tests/validation/config.json

@@ -190,6 +190,7 @@
     {
       "title": "PBR glossy",
       "renderCount": 20,
+      "replace": "engine.setHardwareScalingLevel, //engine.setHardwareScalingLevel",
       "scriptToRun": "/Demos/PBRGlossy/index.js",
       "functionToCall": "CreatePBRGlossyScene",
       "referenceImage": "pbrglossy.png"