Просмотр исходного кода

Merge pull request #3898 from TrevorDev/defaultPipelineValidationTest

Default pipeline validation test
David Catuhe 7 лет назад
Родитель
Сommit
e988795196

+ 1 - 1
dist/preview release/what's new.md

@@ -88,7 +88,7 @@
 - Supports Environment Drag and Drop in Sandbox ([sebavan](https://github.com/sebavan))
 - EnvironmentHelper has no an onError observable to handle errors when loading the textures ([RaananW](https://github.com/RaananW))
 - (Viewer) Viewer supports model animations ([RaananW](https://github.com/RaananW))
-- Tests for sharpen, chromatic aberration and enable/disable post processes ([trevordev](https://github.com/trevordev))
+- Tests for sharpen, chromatic aberration, default pipeline and enable/disable post processes ([trevordev](https://github.com/trevordev))
 
 ## Bug fixes
 

+ 2 - 2
src/PostProcess/babylon.chromaticAberrationPostProcess.ts

@@ -4,9 +4,9 @@ module BABYLON {
      */
     export class ChromaticAberrationPostProcess extends PostProcess {
         /**
-         * The amount of seperation of rgb channels (default: 0)
+         * The amount of seperation of rgb channels (default: 30)
          */
-        aberrationAmount = 0;
+        aberrationAmount = 30;
 
         /**
          * The amount the effect will increase for pixels closer to the edge of the screen. (default: 0)

BIN
tests/validation/ReferenceImages/defaultPipeline.png


+ 6 - 0
tests/validation/config.json

@@ -285,6 +285,12 @@
       "referenceImage": "chromaticAberration.png"
     },
     {
+      "title": "Default pipeline",
+      "playgroundId": "#NAW8EA#3",
+      "renderCount": 20,
+      "referenceImage": "defaultPipeline.png"
+    },
+    {
       "title": "Kernel Blur",
       "playgroundId": "#Y0WKT0#0",
       "referenceImage": "KernelBlur.png"