|
@@ -3789,7 +3789,9 @@ export class Scene extends AbstractScene implements IAnimatable, IClipPlanesHold
|
|
|
|
|
|
// Finalize frame
|
|
|
if (this.postProcessManager && !camera._multiviewTexture) {
|
|
|
- this.postProcessManager._finalizeFrame(camera.isIntermediate);
|
|
|
+ // if the camera has an output render target, render the post process to the render target
|
|
|
+ const texture = camera.outputRenderTarget ? camera.outputRenderTarget.getInternalTexture()! : undefined;
|
|
|
+ this.postProcessManager._finalizeFrame(camera.isIntermediate, texture);
|
|
|
}
|
|
|
|
|
|
// Reset some special arrays
|