Benjamin Guignabert 4 年之前
父節點
當前提交
3141303760
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/Rendering/prePassRenderer.ts

+ 1 - 0
src/Rendering/prePassRenderer.ts

@@ -539,6 +539,7 @@ export class PrePassRenderer {
 
 
         this._needsCompositionForThisPass = !this._hasImageProcessing(this._postProcessesSourceForThisPass) &&
         this._needsCompositionForThisPass = !this._hasImageProcessing(this._postProcessesSourceForThisPass) &&
             !this.disableGammaTransform &&
             !this.disableGammaTransform &&
+            // prePassRenderTarget._beforeCompositionPostProcesses.length > 0 && // TODO : remove the need for composition by including it in the SSS post process
             !secondaryCamera;
             !secondaryCamera;
 
 
         const firstCameraPP = this._getFirstPostProcess(this._postProcessesSourceForThisPass);
         const firstCameraPP = this._getFirstPostProcess(this._postProcessesSourceForThisPass);