@@ -262,7 +262,7 @@ export class MultiRenderTarget extends RenderTargetTexture {
if (this._internalTextures) {
this._samples = this._getEngine()!.updateMultipleRenderTargetTextureSampleCount(this._internalTextures, value);
- } else{
+ } else {
// In case samples are set with 0 textures created, we must save the desired samples value
this._samples = value;
}
@@ -45,6 +45,9 @@ export class PrePassRenderTarget extends MultiRenderTarget {
this.renderTargetTexture = renderTargetTexture;
+ /**
+ * Creates a composition effect for this RT
+ */
public _createCompositionEffect() {
this.imageProcessingPostProcess = new ImageProcessingPostProcess("prePassComposition", 1, null, undefined, this._engine);
this.imageProcessingPostProcess._updateParameters();
@@ -356,18 +356,7 @@ export class PrePassRenderer {
this._update();
- const texture = this._currentTarget.renderTargetTexture;
-
if (!this._enabled || !this._currentTarget.enabled) {
- // Prepass disabled, we render only on 1 color attachment
- if (texture) {
- // this._engine.restoreSingleAttachment();
- // texture._prepareFrame(this._scene, faceIndex, layer, texture.useCameraPostProcesses);
- } else {
- // this._engine.restoreDefaultFramebuffer();
- }
return;