In my Three.js project, I have a scene with various objects and text that are viewed through a single camera named camera_A. The output of this camera goes to a viewport_A on one part of my webpage.
Now, I want to add a second camera (camera_B) that will also view the same scene but send its output to a different viewport (viewport_B) on another section of the webpage. Camera_B should show a mirrored image compared to what is displayed in viewport_A. Both cameras are identical except for this mirroring effect.
I am aware of how to set up multiple viewports on a webpage using two cameras in a single renderer object. However, I am unsure of the best way to achieve the mirror image effect in viewport_B.
I attempted to use the following command:
camera.projectionMatrix.scale
(new THREE.Vector3(-1, 1, 1));
However, implementing this command resulted in distorted perspectives of objects as seen in this jsfiddle example: http://jsfiddle.net/steveow/510h3nwv/2/
EDIT:
An answer provided by stdob was effective in achieving the desired mirror image effect, although it involved using a second renderer.
(Apologies for not clarifying my preference for a single renderer in the original question).
Ideally, I would like to utilize only one renderer while still being able to mirror the image in viewport_B.