Explorar el Código

add back image processing

Trevor Baron hace 7 años
padre
commit
68e17c13fa

+ 9 - 0
src/PostProcess/RenderPipeline/Pipelines/babylon.defaultRenderingPipeline.ts

@@ -408,6 +408,15 @@
                 this._setAutoClearAndTextureSharing(this.fxaa);
             }
 
+            if (this._imageProcessingEnabled) {	
+                this.imageProcessing = new ImageProcessingPostProcess("imageProcessing", 1.0, null, Texture.BILINEAR_SAMPLINGMODE, engine, false, this._defaultPipelineTextureType);	
+                if (this._hdr) {	
+                    this.addEffect(new PostProcessRenderEffect(engine, this.ImageProcessingPostProcessId, () => { return this.imageProcessing; }, true));	
+                } else {	
+                    this._scene.imageProcessingConfiguration.applyByPostProcess = false;	
+                }	
+            }
+
             if (this.chromaticAberrationEnabled) {
                 if(!this.chromaticAberration.isReady()){
                     this.chromaticAberration.updateEffect();

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

@@ -6,6 +6,10 @@ module BABYLON {
         private _effects: Array<PostProcess> = [];
         private blurX:BlurPostProcess;
         private blurY:BlurPostProcess;
+        
+        /**
+         * Internal
+         */
         public _merge:DepthOfFieldMergePostProcess;
 
         /**