module.exports=[81455,a=>{"use strict";var b=a.i(35258);let c=new b.OrthographicCamera(-1,1,1,-1,0,1);class d extends b.BufferGeometry{constructor(){super(),this.setAttribute("position",new b.Float32BufferAttribute([-1,3,0,-1,-1,0,3,-1,0],3)),this.setAttribute("uv",new b.Float32BufferAttribute([0,2,0,0,2,0],2))}}let e=new d;a.s(["FullScreenQuad",0,class{constructor(a){this._mesh=new b.Mesh(e,a)}dispose(){this._mesh.geometry.dispose()}render(a){a.render(this._mesh,c)}get material(){return this._mesh.material}set material(a){this._mesh.material=a}},"Pass",0,class{constructor(){this.isPass=!0,this.enabled=!0,this.needsSwap=!0,this.clear=!1,this.renderToScreen=!1}setSize(){}render(){console.error("THREE.Pass: .render() must be implemented in derived pass.")}dispose(){}}])},61063,a=>{"use strict";let b={name:"CopyShader",uniforms:{tDiffuse:{value:null},opacity:{value:1}},vertexShader:`

		varying vec2 vUv;

		void main() {

			vUv = uv;
			gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );

		}`,fragmentShader:`

		uniform float opacity;

		uniform sampler2D tDiffuse;

		varying vec2 vUv;

		void main() {

			vec4 texel = texture2D( tDiffuse, vUv );
			gl_FragColor = opacity * texel;


		}`};a.s(["CopyShader",0,b])},39401,a=>{"use strict";var b=a.i(35258),c=a.i(81455);class d extends c.Pass{constructor(a,d="tDiffuse"){super(),this.textureID=d,this.uniforms=null,this.material=null,a instanceof b.ShaderMaterial?(this.uniforms=a.uniforms,this.material=a):a&&(this.uniforms=b.UniformsUtils.clone(a.uniforms),this.material=new b.ShaderMaterial({name:void 0!==a.name?a.name:"unspecified",defines:Object.assign({},a.defines),uniforms:this.uniforms,vertexShader:a.vertexShader,fragmentShader:a.fragmentShader})),this._fsQuad=new c.FullScreenQuad(this.material)}render(a,b,c){this.uniforms[this.textureID]&&(this.uniforms[this.textureID].value=c.texture),this._fsQuad.material=this.material,this.renderToScreen?a.setRenderTarget(null):(a.setRenderTarget(b),this.clear&&a.clear(a.autoClearColor,a.autoClearDepth,a.autoClearStencil)),this._fsQuad.render(a)}dispose(){this.material.dispose(),this._fsQuad.dispose()}}a.s(["ShaderPass",0,d])},51159,a=>{"use strict";var b=a.i(35258),c=a.i(61063),d=a.i(39401),e=a.i(81455);class f extends e.Pass{constructor(a,b){super(),this.scene=a,this.camera=b,this.clear=!0,this.needsSwap=!1,this.inverse=!1}render(a,b,c){let d,e,f=a.getContext(),g=a.state;g.buffers.color.setMask(!1),g.buffers.depth.setMask(!1),g.buffers.color.setLocked(!0),g.buffers.depth.setLocked(!0),this.inverse?(d=0,e=1):(d=1,e=0),g.buffers.stencil.setTest(!0),g.buffers.stencil.setOp(f.REPLACE,f.REPLACE,f.REPLACE),g.buffers.stencil.setFunc(f.ALWAYS,d,0xffffffff),g.buffers.stencil.setClear(e),g.buffers.stencil.setLocked(!0),a.setRenderTarget(c),this.clear&&a.clear(),a.render(this.scene,this.camera),a.setRenderTarget(b),this.clear&&a.clear(),a.render(this.scene,this.camera),g.buffers.color.setLocked(!1),g.buffers.depth.setLocked(!1),g.buffers.color.setMask(!0),g.buffers.depth.setMask(!0),g.buffers.stencil.setLocked(!1),g.buffers.stencil.setFunc(f.EQUAL,1,0xffffffff),g.buffers.stencil.setOp(f.KEEP,f.KEEP,f.KEEP),g.buffers.stencil.setLocked(!0)}}class g extends e.Pass{constructor(){super(),this.needsSwap=!1}render(a){a.state.buffers.stencil.setLocked(!1),a.state.buffers.stencil.setTest(!1)}}a.s(["EffectComposer",0,class{constructor(a,e){if(this.renderer=a,this._pixelRatio=a.getPixelRatio(),void 0===e){const c=a.getSize(new b.Vector2);this._width=c.width,this._height=c.height,(e=new b.WebGLRenderTarget(this._width*this._pixelRatio,this._height*this._pixelRatio,{type:b.HalfFloatType})).texture.name="EffectComposer.rt1"}else this._width=e.width,this._height=e.height;this.renderTarget1=e,this.renderTarget2=e.clone(),this.renderTarget2.texture.name="EffectComposer.rt2",this.writeBuffer=this.renderTarget1,this.readBuffer=this.renderTarget2,this.renderToScreen=!0,this.passes=[],this.copyPass=new d.ShaderPass(c.CopyShader),this.copyPass.material.blending=b.NoBlending,this.timer=new b.Timer}swapBuffers(){let a=this.readBuffer;this.readBuffer=this.writeBuffer,this.writeBuffer=a}addPass(a){this.passes.push(a),a.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}insertPass(a,b){this.passes.splice(b,0,a),a.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}removePass(a){let b=this.passes.indexOf(a);-1!==b&&this.passes.splice(b,1)}isLastEnabledPass(a){for(let b=a+1;b<this.passes.length;b++)if(this.passes[b].enabled)return!1;return!0}render(a){this.timer.update(),void 0===a&&(a=this.timer.getDelta());let b=this.renderer.getRenderTarget(),c=!1;for(let b=0,d=this.passes.length;b<d;b++){let d=this.passes[b];if(!1!==d.enabled){if(d.renderToScreen=this.renderToScreen&&this.isLastEnabledPass(b),d.render(this.renderer,this.writeBuffer,this.readBuffer,a,c),d.needsSwap){if(c){let b=this.renderer.getContext(),c=this.renderer.state.buffers.stencil;c.setFunc(b.NOTEQUAL,1,0xffffffff),this.copyPass.render(this.renderer,this.writeBuffer,this.readBuffer,a),c.setFunc(b.EQUAL,1,0xffffffff)}this.swapBuffers()}void 0!==f&&(d instanceof f?c=!0:d instanceof g&&(c=!1))}}this.renderer.setRenderTarget(b)}reset(a){if(void 0===a){let c=this.renderer.getSize(new b.Vector2);this._pixelRatio=this.renderer.getPixelRatio(),this._width=c.width,this._height=c.height,(a=this.renderTarget1.clone()).setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}this.renderTarget1.dispose(),this.renderTarget2.dispose(),this.renderTarget1=a,this.renderTarget2=a.clone(),this.writeBuffer=this.renderTarget1,this.readBuffer=this.renderTarget2}setSize(a,b){this._width=a,this._height=b;let c=this._width*this._pixelRatio,d=this._height*this._pixelRatio;this.renderTarget1.setSize(c,d),this.renderTarget2.setSize(c,d);for(let a=0;a<this.passes.length;a++)this.passes[a].setSize(c,d)}setPixelRatio(a){this._pixelRatio=a,this.setSize(this._width,this._height)}dispose(){this.renderTarget1.dispose(),this.renderTarget2.dispose(),this.copyPass.dispose()}}],51159)}];

//# sourceMappingURL=node_modules_three_examples_jsm_0v.lsm6._.js.map