Set a background image for only one of the two cameras in a separate Viewport

Hello!
Is there a way to make the background image for only one of the two cameras (Orthographic and Perspective) used in a separate Viewport? In this case, the project uses one scene. Or is it possible to set the background image for the selected layer only?

When you render with more than one cameras, you also have multiple render calls. Have you tried to dynamically define the background in the render loop? Something like:

renderer.clear();

scene.background = texture;
renderer.setViewport( 0, 0, window.innerWidth/ 2, window.innerHeight);
renderer.render( scene, camera1 );

scene.background = null;
renderer.setViewport( window.innerWidth/ 2, 0, window.innerWidth/ 2, window.innerHeight);
renderer.render( scene, camera2 );
3 Likes