Преглед изворни кода

Merge branch 'master' of https://github.com/BabylonJS/Babylon.js into master

David Catuhe пре 4 година
родитељ
комит
54d1231a26

BIN
tests/validation/ReferenceImages/shadowscsmandlod.png


+ 6 - 0
tests/validation/config.json

@@ -952,6 +952,12 @@
             "referenceImage": "shadowsandlod.png"
             "referenceImage": "shadowsandlod.png"
         },
         },
         {
         {
+            "title": "Shadows CSM and LODs",
+            "playgroundId": "#24HWT9#0",
+            "referenceImage": "shadowscsmandlod.png",
+            "excludedEngines": ["webgl1"]
+        },
+        {
             "title": "Glow layer and LODs",
             "title": "Glow layer and LODs",
             "playgroundId": "#UNS6ZV#2",
             "playgroundId": "#UNS6ZV#2",
             "referenceImage": "glowlayerandlods.png"
             "referenceImage": "glowlayerandlods.png"

+ 7 - 0
tests/validation/validation.js

@@ -160,6 +160,13 @@ function runTest(index, done) {
         done(false);
         done(false);
     }
     }
 
 
+    const excludedEngines = config.tests[index].excludedEngines;
+    const webgl1 = !!window.disableWebGL2Support;
+    if (Array.isArray(excludedEngines) && (webgl1 && excludedEngines.indexOf("webgl1") >= 0 || !webgl1 && excludedEngines.indexOf("webgl2") >= 0)) {
+        done(true);
+        return;
+    }
+
     // Clear the plugin activated observables in case it is registered in the test.
     // Clear the plugin activated observables in case it is registered in the test.
     BABYLON.SceneLoader.OnPluginActivatedObservable.clear();
     BABYLON.SceneLoader.OnPluginActivatedObservable.clear();