Selaa lähdekoodia

undo adding _outputTextureScale

Trevor Baron 7 vuotta sitten
vanhempi
commit
021852233b

+ 2 - 8
src/PostProcess/babylon.postProcess.ts

@@ -20,10 +20,6 @@
         */
         public _outputTexture: Nullable<InternalTexture> = null;
         /**
-        * Internal, if set, this will override the next postprocess in the chain's input texture's width an height
-        */
-        public _outputTextureScale:number = 0;
-        /**
         * Sampling mode used by the shader
         * See https://doc.babylonjs.com/classes/3.1/texture
         */
@@ -76,10 +72,8 @@
         private _camera: Camera;
         private _scene: Scene;
         private _engine: Engine;
-        /**
-        * Internal
-        */
-        public _options: number | PostProcessOptions;
+        
+        private _options: number | PostProcessOptions;
         private _reusable = false;
         private _textureType: number;
         /**

+ 0 - 3
src/PostProcess/babylon.postProcessManager.ts

@@ -150,9 +150,6 @@
                 var pp = postProcesses[index];
 
                 if (index < len - 1) {
-                    if(pp._outputTextureScale){
-                        postProcesses[index + 1]._options = pp._outputTextureScale;
-                    }
                     pp._outputTexture = postProcesses[index + 1].activate(camera, targetTexture);
                 } else {
                     if (targetTexture) {