Преглед на файлове

update validation images

Trevor Baron преди 7 години
родител
ревизия
212c294212

+ 2 - 11
src/PostProcess/RenderPipeline/Pipelines/babylon.defaultRenderingPipeline.ts

@@ -411,7 +411,6 @@
         private _hasCleared = false;
         private _prevPostProcess:Nullable<PostProcess> = null;
         private _prevPrevPostProcess:Nullable<PostProcess> = null;
-        private _firstPostProcess:Nullable<PostProcess> = null;
 
         private _setAutoClearAndTextureSharing(postProcess:PostProcess, skipTextureSharing = false){
             if(this._hasCleared){
@@ -422,11 +421,6 @@
                 this._hasCleared = true;
             }
 
-            if(!this._firstPostProcess){
-                this._firstPostProcess = postProcess;
-                skipTextureSharing = true;
-            }
-
             if(!skipTextureSharing){
                 if(this._prevPrevPostProcess){
                     postProcess.shareOutputWith(this._prevPrevPostProcess);
@@ -458,10 +452,7 @@
             this._reset();
             this._prevPostProcess = null;
             this._prevPrevPostProcess = null;
-            this._hasCleared = false;
-            this._firstPostProcess = null;
-
-            
+            this._hasCleared = false;            
 
             if (this.depthOfFieldEnabled) {
                 var depthTexture = this._scene.enableDepthRenderer(this._cameras[0]).getDepthMap();
@@ -518,7 +509,7 @@
             if (this.fxaaEnabled) {
                 this.fxaa = new FxaaPostProcess("fxaa", 1.0, null, Texture.BILINEAR_SAMPLINGMODE, engine, false, this._defaultPipelineTextureType);
                 this.addEffect(new PostProcessRenderEffect(engine, this.FxaaPostProcessId, () => { return this.fxaa; }, true));
-                this._setAutoClearAndTextureSharing(this.fxaa);
+                this._setAutoClearAndTextureSharing(this.fxaa, true);
             }
 
             if (this._cameras !== null) {

BIN
tests/validation/ReferenceImages/DefaultRenderingPipeline.png


BIN
tests/validation/ReferenceImages/defaultPipeline.png


+ 1 - 1
tests/validation/config.json

@@ -286,7 +286,7 @@
     },
     {
       "title": "Default pipeline",
-      "playgroundId": "#NAW8EA#5",
+      "playgroundId": "#NAW8EA#6",
       "renderCount": 20,
       "referenceImage": "defaultPipeline.png"
     },