import{P as e,S as t,U as r}from"./Pass-4e5bd5e0.js";var s=function(s,a){e.call(this),this.textureID=void 0!==a?a:"tDiffuse",s instanceof t?(this.uniforms=s.uniforms,this.material=s):s&&(this.uniforms=r.clone(s.uniforms),this.material=new t({defines:Object.assign({},s.defines),uniforms:this.uniforms,vertexShader:s.vertexShader,fragmentShader:s.fragmentShader})),this.fsQuad=new e.FullScreenQuad(this.material)};s.prototype=Object.assign(Object.create(e.prototype),{constructor:s,render:function(e,t,r){this.uniforms[this.textureID]&&(this.uniforms[this.textureID].value=r.texture),this.fsQuad.material=this.material,this.renderToScreen?(e.setRenderTarget(null),this.fsQuad.render(e)):(e.setRenderTarget(t),this.clear&&e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil),this.fsQuad.render(e))}});export{s as S};
//# sourceMappingURL=ShaderPass-268df2f9.js.map
