When I use one camera, the view is like this.
When I use viewport of two cameras, the view is like this.But the view of every camera is not complete and the horizon is not compressed.
leftCamera = camera.clone('leftCamera');
leftCamera._currentTarget = camera._currentTarget;
rightCamera = camera.clone('rightCamera');
rightCamera._currentTarget = camera._currentTarget;
//leftCamera.attachControl(canvas, true);
//rightCamera.attachControl(canvas, true);
leftCamera.viewport = new BABYLON.Viewport(0, 0, 0.5, 1.0);
rightCamera.viewport = new BABYLON.Viewport(0.5, 0, 0.5, 1.0);
I want to the view of every camera is complete and the horizon is compressed.
How to achieve?