Browse Source

removing unused stuff

Benjamin Guignabert 5 years ago
parent
commit
49c0751ba7

+ 1 - 2
src/Materials/PBR/pbrBaseMaterial.ts

@@ -678,9 +678,8 @@ export abstract class PBRBaseMaterial extends PushMaterial {
     /**
     /**
      * Should this material render to several textures at once
      * Should this material render to several textures at once
      */
      */
-    public forceRenderToMRT: boolean = false;
     public get shouldRenderToMRT() {
     public get shouldRenderToMRT() {
-        return this.subSurface.isScatteringEnabled || this.forceRenderToMRT;
+        return this.subSurface.isScatteringEnabled;
     }
     }
 
 
     /**
     /**

+ 0 - 41
src/PostProcesses/sceneCompositorPostProcess.ts

@@ -1,41 +0,0 @@
-import { Nullable } from "../types";
-import { Camera } from "../Cameras/camera";
-import { Effect } from "../Materials/effect";
-import { Texture } from "../Materials/Textures/texture";
-import { PostProcess, PostProcessOptions } from "./postProcess";
-import { Engine } from "../Engines/engine";
-import { Constants } from "../Engines/constants";
-
-import "../Shaders/sceneCompositor.fragment";
-import "../Shaders/postprocess.vertex";
-
-/**
- * Scene compositor post process
- */
-export class SceneCompositorPostProcess extends PostProcess {
-    /** @hidden */
-    public texelWidth: number;
-    /** @hidden */
-    public texelHeight: number;
-
-    constructor(name: string, options: number | PostProcessOptions, camera: Nullable<Camera> = null, samplingMode?: number, engine?: Engine, reusable?: boolean, textureType: number = Constants.TEXTURETYPE_UNSIGNED_INT) {
-        super(name, "sceneCompositor", ["texelSize"], null, options, camera, samplingMode || Texture.BILINEAR_SAMPLINGMODE, engine, reusable, null, textureType, "postprocess", undefined, true);
-
-        const defines = this._getDefines();
-        this.updateEffect(defines);
-
-        this.onApplyObservable.add((effect: Effect) => {
-            var texelSize = this.texelSize;
-            effect.setFloat2("texelSize", texelSize.x, texelSize.y);
-        });
-    }
-
-    private _getDefines(): Nullable<string> {
-        const engine = this.getEngine();
-        if (!engine) {
-            return null;
-        }
-        let defines = "";
-        return defines;
-    }
-}

+ 0 - 8
src/Shaders/sceneCompositor.fragment.fx

@@ -1,8 +0,0 @@
-// Samplers
-varying vec2 vUV;
-uniform sampler2D textureSampler;
-
-void main(void) 
-{
-	gl_FragColor = texture2D(textureSampler, vUV);
-}