"use strict";var e=require("./Pass-92e09165.js"),t=function(t,r){e.Pass.call(this),this.textureID=void 0!==r?r:"tDiffuse",t instanceof e.ShaderMaterial?(this.uniforms=t.uniforms,this.material=t):t&&(this.uniforms=e.UniformsUtils.clone(t.uniforms),this.material=new e.ShaderMaterial({defines:Object.assign({},t.defines),uniforms:this.uniforms,vertexShader:t.vertexShader,fragmentShader:t.fragmentShader})),this.fsQuad=new e.Pass.FullScreenQuad(this.material)};t.prototype=Object.assign(Object.create(e.Pass.prototype),{constructor:t,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))}}),exports.ShaderPass=t;
//# sourceMappingURL=ShaderPass-880bb2bb.js.map
