浏览代码

remove redundant passPostProcess

Trevor Baron 7 年之前
父节点
当前提交
7a9ea5af77
共有 1 个文件被更改,包括 1 次插入4 次删除
  1. 1 4
      src/PostProcess/babylon.bloomEffect.ts

+ 1 - 4
src/PostProcess/babylon.bloomEffect.ts

@@ -14,7 +14,6 @@ module BABYLON {
         public _downscale:ExtractHighlightsPostProcess;
         private _blurX:BlurPostProcess;
         private _blurY:BlurPostProcess;
-        private _upscale:PassPostProcess;
         private _merge:Nullable<DefaultPipelineMergeMergePostProcess>;
 
         /**
@@ -63,9 +62,7 @@ module BABYLON {
 
             this.kernel = bloomKernel;
 
-            this._upscale = new PassPostProcess("sceneRenderTarget", bloomScale, null, Texture.BILINEAR_SAMPLINGMODE, scene.getEngine(), false, pipelineTextureType, blockCompilation);
-            this._upscale.autoClear = false;
-            this._effects = [this._downscale, this._blurY, this._blurX, this._upscale];
+            this._effects = [this._downscale, this._blurY, this._blurX];
 
             if(performMerge){
                 this._merge = new DefaultPipelineMergeMergePostProcess("defaultPipelineMerge", {originalFromInput: this._blurX, bloom: {blurred: this._blurY, weight: 0}}, 1, null, BABYLON.Texture.BILINEAR_SAMPLINGMODE, scene.getEngine(), false, pipelineTextureType, blockCompilation);