How to use postprocess for multi scenes

I have multi scenes and use same renderer to render.
renderer.render( scene1,camera);
renderer.render(scene2,camera);
renderer.render(scene3,camera);

direction1

direction2

now I want to add a outlinepass for the box in scene2 and I want to keep the outline on the top.
how can I complete this ?

1 Like

I meet the similar question:

I have some scene , some of them need postprocess.

my code:

 this.renderer.autoClear = false;
        this.renderer.clear();
        renderer.render(scene1, camera);
        renderer.render(scene2, camera);

        this.composer.render(deltaTime);
      
        this.renderer.autoClear = true;

screen only show the composer.render , cant see scene1 or scene2

you need render scene1 , dont clear() , then render scene2 or composer