import{ft as e,ht as t}from"./three-DMwvpBUV.js";var n=class{constructor(n){let r=new e;r.aspect=.5;let i=new t;this.setEyeSeparation=function(e){r.eyeSep=e},this.setSize=function(e,t){n.setSize(e,t)},this.render=function(e,t){e.matrixWorldAutoUpdate===!0&&e.updateMatrixWorld(),t.parent===null&&t.matrixWorldAutoUpdate===!0&&t.updateMatrixWorld(),r.update(t);let a=n.autoClear;n.getSize(i),n.autoClear=!1,n.clear(),n.setScissorTest(!0),n.setScissor(0,0,i.width/2,i.height),n.setViewport(0,0,i.width/2,i.height),n.render(e,r.cameraL),n.setScissor(i.width/2,0,i.width/2,i.height),n.setViewport(i.width/2,0,i.width/2,i.height),n.render(e,r.cameraR),n.setScissorTest(!1),n.autoClear=a}}};export{n as StereoEffect};