فهرست منبع

Make sure the engine is correctly reset after each validation test

Popov72 4 سال پیش
والد
کامیت
3c5a72d406

+ 1 - 1
src/States/depthCullingState.ts

@@ -136,7 +136,7 @@ export class DepthCullingState {
         this._isDepthFuncDirty = false;
         this._isDepthFuncDirty = false;
         this._isCullFaceDirty = false;
         this._isCullFaceDirty = false;
         this._isCullDirty = false;
         this._isCullDirty = false;
-        this._isZOffsetDirty = false;
+        this._isZOffsetDirty = true;
         this._isFrontFaceDirty = false;
         this._isFrontFaceDirty = false;
     }
     }
 
 

BIN
tests/validation/ReferenceImages/webgpu/apply all post processes.png


BIN
tests/validation/ReferenceImages/webgpu/default render pipeline.png


BIN
tests/validation/ReferenceImages/webgpu/neon pipe with glow layer.png


BIN
tests/validation/ReferenceImages/webgpu/show bounding box.png


BIN
tests/validation/ReferenceImages/webgpu/simple render target with blue spheres.png


BIN
tests/validation/ReferenceImages/webgpu/skybox with boombox.png


BIN
tests/validation/ReferenceImages/webgpu/torus knot mirror.png


BIN
tests/validation/ReferenceImages/webgpu/water material.png


+ 7 - 1
tests/validation/validation.js

@@ -130,10 +130,16 @@ async function evaluate(test, resultCanvas, result, renderImage, waitRing, done)
     var renderB64 = saveRenderImage(renderData, canvas);
     var renderB64 = saveRenderImage(renderData, canvas);
     renderImage.src = renderB64;
     renderImage.src = renderB64;
 
 
-    engine.applyStates();
     currentScene.dispose();
     currentScene.dispose();
     currentScene = null;
     currentScene = null;
     engine.setHardwareScalingLevel(1);
     engine.setHardwareScalingLevel(1);
+    engine.setDepthFunction(BABYLON.Constants.LEQUAL);
+
+    engine.applyStates();
+
+    engine._deltaTime = 0;
+    engine._fps = 60;
+    engine._performanceMonitor = new BABYLON.PerformanceMonitor();
 
 
     done(testRes, renderB64);
     done(testRes, renderB64);
 }
 }

+ 2 - 2
tests/validation/webgpu.json

@@ -26,7 +26,7 @@
         },
         },
         {
         {
             "title": "sphere with custom shader to display wireframe using glow layer",
             "title": "sphere with custom shader to display wireframe using glow layer",
-            "playgroundId": "#Y05E2C#0"
+            "playgroundId": "#Y05E2C#1"
         },
         },
         {
         {
             "title": "blur cube with the effect renderer",
             "title": "blur cube with the effect renderer",
@@ -75,7 +75,7 @@
         {
         {
             "title": "simple custom shader",
             "title": "simple custom shader",
             "renderCount": 5,
             "renderCount": 5,
-            "playgroundId": "#6GFJNR#1"
+            "playgroundId": "#6GFJNR#2"
         },
         },
         {
         {
             "title": "show multiple guis",
             "title": "show multiple guis",