Sfoglia il codice sorgente

Merge pull request #5179 from julien-moreau/master

FIxing StandardRenderingPipleine that always adds the original post-process
David Catuhe 7 anni fa
parent
commit
5a03fb8a79

+ 3 - 1
src/PostProcess/RenderPipeline/Pipelines/babylon.standardRenderingPipeline.ts

@@ -475,7 +475,9 @@
                 this.originalPostProcess = this._basePostProcess;
             }
 
-            this.addEffect(new PostProcessRenderEffect(scene.getEngine(), "HDRPassPostProcess", () => { return this.originalPostProcess; }, true));
+            if (this._bloomEnabled || this._vlsEnabled || this._lensFlareEnabled || this._depthOfFieldEnabled || this._motionBlurEnabled) {
+                this.addEffect(new PostProcessRenderEffect(scene.getEngine(), "HDRPassPostProcess", () => { return this.originalPostProcess; }, true));
+            }
 
             this._currentDepthOfFieldSource = this.originalPostProcess;